diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-13 21:05:16 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-13 21:05:16 +0200 |
commit | 818169971c0a572f4fc5763f91396169581e64c9 (patch) | |
tree | 457560249bec000a057eb4e83b79dfe8c4ae1ff0 /print-ether.c | |
parent | c6a5cc1bb49bcbc5f74c66bf780b8a1a05e8eb9d (diff) | |
download | tcpdump-818169971c0a572f4fc5763f91396169581e64c9.tar.gz |
Add more nd_print_trunc() calls
Diffstat (limited to 'print-ether.c')
-rw-r--r-- | print-ether.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/print-ether.c b/print-ether.c index 1158b794..887a8eee 100644 --- a/print-ether.c +++ b/print-ether.c @@ -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); |