From e67f4fcae8173ccd4a7de1a0c5fedd2265675f81 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Thu, 13 Sep 2018 21:16:44 +0200 Subject: [PATCH] Add more nd_print_trunc() calls --- print-sll.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {