diff options
| author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-06-06 15:00:10 +0200 |
|---|---|---|
| committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-06-06 18:12:42 +0200 |
| commit | 4dee61760d291060f08e68eed2e7a1b98ce7e4a4 (patch) | |
| tree | 5349e1e27926a24d741a790491cc0dbaf2064a1e /print-arcnet.c | |
| parent | 94d2bf7fcc3721b6eae23613ead037ef47e37fcb (diff) | |
| download | tcpdump-4dee61760d291060f08e68eed2e7a1b98ce7e4a4.tar.gz | |
Add more nd_print_trunc() calls
Update the output of some tests accordingly.
Diffstat (limited to 'print-arcnet.c')
| -rw-r--r-- | print-arcnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-arcnet.c b/print-arcnet.c index 18d90aa9..b5831c23 100644 --- a/print-arcnet.c +++ b/print-arcnet.c @@ -192,7 +192,7 @@ arcnet_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ch ndo->ndo_protocol = "arcnet_if"; if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) { - ND_PRINT("[|arcnet]"); + nd_print_trunc(ndo); return (caplen); } @@ -280,7 +280,7 @@ arcnet_linux_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, cons ndo->ndo_protocol = "arcnet_linux_if"; if (caplen < ARC_LINUX_HDRLEN || length < ARC_LINUX_HDRLEN) { - ND_PRINT("[|arcnet]"); + nd_print_trunc(ndo); return (caplen); } @@ -291,7 +291,7 @@ arcnet_linux_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, cons default: archdrlen = ARC_LINUX_HDRNEWLEN; if (caplen < ARC_LINUX_HDRNEWLEN || length < ARC_LINUX_HDRNEWLEN) { - ND_PRINT("[|arcnet]"); + nd_print_trunc(ndo); return (caplen); } break; |
