]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
Print truncations with nd_print_trunc() instead of tstr[] strings
[tcpdump] / print-null.c
index 64fdfa25aae87d3e5dd752e2a081edb6a3178fbd..e7daacd42b86a265b4346d1193569421a72f0b64 100644 (file)
@@ -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
@@ -141,6 +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);
 }