diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-08-07 13:25:21 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-08-07 13:25:21 +0200 |
commit | 58d8b5d435492e136e3cf1fee13299f8caf27815 (patch) | |
tree | 97b632447d79e81d25b73c5290a4e6eb9e3b3b91 /print-bcm-li.c | |
parent | b30f3843b93c11e897e6d8888a91abf709a716ae (diff) | |
download | tcpdump-58d8b5d435492e136e3cf1fee13299f8caf27815.tar.gz |
Broadcom LI: Pass correct caplen value to ether_print()
Diffstat (limited to 'print-bcm-li.c')
-rw-r--r-- | print-bcm-li.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-bcm-li.c b/print-bcm-li.c index 0233c3cb..b6877e23 100644 --- a/print-bcm-li.c +++ b/print-bcm-li.c @@ -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); |