summaryrefslogtreecommitdiff
path: root/print-pktap.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-pktap.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-pktap.c')
-rw-r--r--print-pktap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-pktap.c b/print-pktap.c
index 825851da..05ab987b 100644
--- a/print-pktap.c
+++ b/print-pktap.c
@@ -108,7 +108,7 @@ pktap_if_print(netdissect_options *ndo,
ndo->ndo_protocol = "pktap_if";
if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) {
- ND_PRINT("[|pktap]");
+ nd_print_trunc(ndo);
return (caplen);
}
hdr = (const pktap_header_t *)p;
@@ -122,11 +122,11 @@ pktap_if_print(netdissect_options *ndo,
* is the length supplied so that the header can
* be expanded in the future)?
*/
- ND_PRINT("[|pktap]");
+ nd_print_trunc(ndo);
return (caplen);
}
if (caplen < hdrlen || length < hdrlen) {
- ND_PRINT("[|pktap]");
+ nd_print_trunc(ndo);
return (caplen);
}