]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sll.c
Add more nd_print_trunc() calls
[tcpdump] / 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) {