]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Add a nd_print_trunc() call
[tcpdump] / print-ether.c
index 1158b7945efa67c46fc5419993807ea9aa25b08f..887a8eee91b140da1a188a208c256e8b7089dbad 100644 (file)
@@ -206,7 +206,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) {
@@ -376,7 +377,8 @@ ethertype_print(netdissect_options *ndo,
 
        case ETHERTYPE_ISO:
                if (length == 0 || caplen == 0) {
-                       ND_PRINT(" [|osi]");
+                       ndo->ndo_protocol = "isoclns";
+                       nd_print_trunc(ndo);
                        return (1);
                }
                isoclns_print(ndo, p + 1, length - 1);