Skip to content

Commit

Permalink
Broadcom LI: Pass correct caplen value to ether_print()
Browse files Browse the repository at this point in the history
  • Loading branch information
fxlb committed Aug 7, 2020
1 parent b30f384 commit 58d8b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion print-bcm-li.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58d8b5d

Please sign in to comment.