]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipnet.c
BOOTP: try to fix 2 newly added compile warnings
[tcpdump] / print-ipnet.c
index 3e710948656717e589d77d26910ea363cb572c65..9f11f39240a6eb5bde65e854daf40c79a16d6f80 100644 (file)
@@ -1,13 +1,10 @@
+#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include <stdio.h>
-#include <pcap.h>
-
-#include "netdissect.h"
 #include "interface.h"
 
 typedef struct ipnet_hdr {
@@ -91,7 +88,7 @@ ipnet_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int
                                        length + sizeof(ipnet_hdr_t));
 
                if (!ndo->ndo_suppress_default_print)
-                       ndo->ndo_default_print(ndo, p, caplen);
+                       ND_DEFAULTPRINT(p, caplen);
                break;
        }
 }