X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/09e85c97c83e87fd5cb0510b351b9d3fe328de78..ba8936b39b0ce2ff02f3aeb307df4c27657652d8:/print-null.c diff --git a/print-null.c b/print-null.c index f1067ff5..e7daacd4 100644 --- a/print-null.c +++ b/print-null.c @@ -33,7 +33,6 @@ #include "extract.h" #include "af.h" -static const char tstr[] = " [|null]"; /* * The DLT_NULL packet header is 4 bytes long. It contains a host-byte-order @@ -82,6 +81,7 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char u_int caplen = h->caplen; uint32_t family; + ndo->ndo_protocol = "null_if"; if (caplen < NULL_HDRLEN) goto trunc; @@ -140,13 +140,6 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char return (NULL_HDRLEN); trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return (NULL_HDRLEN); } - -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */