From: Francois-Xavier Le Bail Date: Thu, 13 Sep 2018 19:16:44 +0000 (+0200) Subject: Add more nd_print_trunc() calls X-Git-Tag: tcpdump-4.99-bp~1021 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e67f4fcae8173ccd4a7de1a0c5fedd2265675f81 Add more nd_print_trunc() calls --- diff --git a/print-sll.c b/print-sll.c index 51526579..4d8b1bd4 100644 --- a/print-sll.c +++ b/print-sll.c @@ -290,7 +290,8 @@ recurse: * the enclosed type field. */ if (caplen < 4) { - ND_PRINT("[|vlan]"); + ndo->ndo_protocol = "vlan"; + nd_print_trunc(ndo); return (hdrlen + caplen); } if (ndo->ndo_eflag) { @@ -477,7 +478,8 @@ recurse: * the enclosed type field. */ if (caplen < 4) { - ND_PRINT("[|vlan]"); + ndo->ndo_protocol = "vlan"; + nd_print_trunc(ndo); return (hdrlen + caplen); } if (ndo->ndo_eflag) {