diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-15 17:38:43 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-15 17:48:07 +0200 |
commit | 0e8826d5fbff2b6aedce07c0097c7e57e7e9d9be (patch) | |
tree | ea55fbb6704186c3161a3657f419c51926bd4df4 /print-arcnet.c | |
parent | 4c1c6e82938e355a998da1b01212b6ba7c7fdddf (diff) | |
download | tcpdump-0e8826d5fbff2b6aedce07c0097c7e57e7e9d9be.tar.gz |
Add more nd_print_trunc() calls
Diffstat (limited to 'print-arcnet.c')
-rw-r--r-- | print-arcnet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/print-arcnet.c b/print-arcnet.c index adc846ff..e5e9bbfe 100644 --- a/print-arcnet.c +++ b/print-arcnet.c @@ -214,7 +214,8 @@ arcnet_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ch if (phds) { if (caplen < ARC_HDRNEWLEN) { arcnet_print(ndo, p, length, 0, 0, 0); - ND_PRINT("[|phds]"); + ND_PRINT(" phds"); + nd_print_trunc(ndo); return (caplen); } @@ -222,7 +223,8 @@ arcnet_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ch if (flag == 0xff) { if (caplen < ARC_HDRNEWLEN_EXC) { arcnet_print(ndo, p, length, 0, 0, 0); - ND_PRINT("[|phds extended]"); + ND_PRINT(" phds extended"); + nd_print_trunc(ndo); return (caplen); } flag = EXTRACT_U_1(ap->arc_flag2); |