]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the nd_print_trunc() function
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 31 Aug 2020 19:57:45 +0000 (21:57 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 31 Aug 2020 19:58:31 +0000 (21:58 +0200)
print.c

diff --git a/print.c b/print.c
index ee64843e2c3fcf6fc9689968babd513d2ceaedfc..6e4cf8937a31fc7b3caa2b05bc44bdcad34533b3 100644 (file)
--- a/print.c
+++ b/print.c
@@ -403,7 +403,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h,
                (ndo->ndo_if_printer)(ndo, h, sp);
        } else {
                /* A printer quit because the packet was truncated; report it */
-               ND_PRINT(" [|%s]", ndo->ndo_protocol);
+               nd_print_trunc(ndo);
        }
        hdrlen = ndo->ndo_ll_hdr_len;