]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add more nd_print_trunc() calls
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 13 Sep 2018 19:16:44 +0000 (21:16 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 13 Sep 2018 19:16:44 +0000 (21:16 +0200)
print-sll.c

index 515265797b17717d56065a4345a2ecbb9d5b2093..4d8b1bd4b654634af671f0f87f7c6bd61d8d965b 100644 (file)
@@ -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) {