summaryrefslogtreecommitdiff
path: root/print-chdlc.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-10 18:05:56 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-10 18:05:56 +0200
commit40ae3ad744d9f71079b410a810acbc33ef39f8ba (patch)
tree08a7248e1fbf30a52c35c98065df6facecb7ba8e /print-chdlc.c
parent1889ef324cceaf8b667a9d4dade8260c395913c7 (diff)
downloadtcpdump-40ae3ad744d9f71079b410a810acbc33ef39f8ba.tar.gz
Add more nd_print_trunc() calls
Update the output of some tests accordingly. Moreover: Add a ndo_protocol field assignment.
Diffstat (limited to 'print-chdlc.c')
-rw-r--r--print-chdlc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/print-chdlc.c b/print-chdlc.c
index 8cd04af4..bd3133bb 100644
--- a/print-chdlc.c
+++ b/print-chdlc.c
@@ -113,7 +113,7 @@ chdlc_print(netdissect_options *ndo, const u_char *p, u_int length)
return (CHDLC_HDRLEN);
trunc:
- ND_PRINT("[|chdlc]");
+ nd_print_trunc(ndo);
return ndo->ndo_snapend - bp;
}
@@ -147,6 +147,7 @@ chdlc_slarp_print(netdissect_options *ndo, const u_char *cp, u_int length)
const struct cisco_slarp *slarp;
u_int sec,min,hrs,days;
+ ndo->ndo_protocol = "chdlc_slarp";
ND_PRINT("SLARP (length: %u), ",length);
if (length < SLARP_MIN_LEN)
goto trunc;
@@ -201,5 +202,5 @@ chdlc_slarp_print(netdissect_options *ndo, const u_char *cp, u_int length)
return;
trunc:
- ND_PRINT("[|slarp]");
+ nd_print_trunc(ndo);
}