]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Broadcom LI: Pass correct caplen value to ether_print()
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 7 Aug 2020 11:25:21 +0000 (13:25 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 7 Aug 2020 11:25:21 +0000 (13:25 +0200)
print-bcm-li.c

index 0233c3cb8a4b15cb52a6abfb58eef8c0a1e5852d..b6877e231d468a6817fa3d9ccbeb4e0253ecd459 100644 (file)
@@ -95,7 +95,7 @@ bcm_li_print(netdissect_options *ndo, const u_char *p, u_int length)
 
        switch (pkt_type) {
        case BCM_LI_PKT_TYPE_ETHERNET:
-           ether_print(ndo, bp, length, length, NULL, NULL);
+           ether_print(ndo, bp, length, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
            break;
        case BCM_LI_PKT_TYPE_IPV4:
            ip_print(ndo, bp, length);