]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipnet.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-ipnet.c
index 627c9b945b4f33c3b160dc8f52a44ad0a4f852e3..6a521eccca19799d148d46ceb404417dfa075021 100644 (file)
@@ -9,7 +9,6 @@
 #include "netdissect.h"
 #include "extract.h"
 
-static const char tstr[] = "[|ipnet]";
 
 typedef struct ipnet_hdr {
        nd_uint8_t      iph_version;
@@ -58,7 +57,7 @@ ipnet_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length)
        ND_PRINT(", length %u: ", length);
        return;
 trunc:
-       ND_PRINT(" %s", tstr);
+       nd_print_trunc(ndo);
 }
 
 static void
@@ -100,7 +99,7 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
        }
        return;
 trunc:
-       ND_PRINT(" %s", tstr);
+       nd_print_trunc(ndo);
 }
 
 /*
@@ -118,12 +117,4 @@ ipnet_if_print(netdissect_options *ndo,
 
        return (sizeof(ipnet_hdr_t));
 }
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */
-
 #endif /* DLT_IPNET */