summaryrefslogtreecommitdiff
path: root/print-atalk.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-06-06 15:00:10 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-06-06 18:12:42 +0200
commit4dee61760d291060f08e68eed2e7a1b98ce7e4a4 (patch)
tree5349e1e27926a24d741a790491cc0dbaf2064a1e /print-atalk.c
parent94d2bf7fcc3721b6eae23613ead037ef47e37fcb (diff)
downloadtcpdump-4dee61760d291060f08e68eed2e7a1b98ce7e4a4.tar.gz
Add more nd_print_trunc() calls
Update the output of some tests accordingly.
Diffstat (limited to 'print-atalk.c')
-rw-r--r--print-atalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-atalk.c b/print-atalk.c
index 278495f8..a40efe2a 100644
--- a/print-atalk.c
+++ b/print-atalk.c
@@ -106,7 +106,7 @@ llap_print(netdissect_options *ndo,
return (length);
}
if (!ND_TTEST_LEN(bp, sizeof(*lp))) {
- ND_PRINT(" [|llap]");
+ nd_print_trunc(ndo);
return (0); /* cut short by the snapshot length */
}
lp = (const struct LAP *)bp;
@@ -221,7 +221,7 @@ aarp_print(netdissect_options *ndo,
ap = (const struct aarp *)bp;
if (!ND_TTEST_SIZE(ap)) {
/* Just bail if we don't have the whole chunk. */
- ND_PRINT(" [|aarp]");
+ nd_print_trunc(ndo);
return;
}
if (length < sizeof(*ap)) {