X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/56e6581c34ceec5469b9f37c19b31a36b0256f3c..4dee61760d291060f08e68eed2e7a1b98ce7e4a4:/print-ether.c diff --git a/print-ether.c b/print-ether.c index aed2bea8..373103dc 100644 --- a/print-ether.c +++ b/print-ether.c @@ -159,11 +159,11 @@ ether_print(netdissect_options *ndo, ndo->ndo_protocol = "ether"; if (caplen < ETHER_HDRLEN) { - ND_PRINT("[|ether]"); + nd_print_trunc(ndo); return (caplen); } if (length < ETHER_HDRLEN) { - ND_PRINT("[|ether]"); + nd_print_trunc(ndo); return (length); } @@ -297,7 +297,7 @@ netanalyzer_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, */ ndo->ndo_protocol = "netanalyzer_if"; if (h->len < 4 || h->caplen < 4) { - ND_PRINT("[|netanalyzer]"); + nd_print_trunc(ndo); return (h->caplen); } @@ -326,7 +326,7 @@ netanalyzer_transparent_if_print(netdissect_options *ndo, */ ndo->ndo_protocol = "netanalyzer_transparent_if"; if (h->len < 12 || h->caplen < 12) { - ND_PRINT("[|netanalyzer-transparent]"); + nd_print_trunc(ndo); return (h->caplen); }