]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-carp.c
Default to first interface from pcap_findalldevs()
[tcpdump] / print-carp.c
index 976e4f2294a484f8d6bb36b69acb91bfc42b5802..eb893e2af2b7d18314c331ebe5cecca1d37169f9 100644 (file)
  *
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h" /* for checksum structure and functions */
+#include "netdissect.h" /* for checksum structure and functions */
 #include "extract.h"
 
 void
@@ -68,7 +67,7 @@ carp_print(netdissect_options *ndo, register const u_char *bp, register u_int le
            bp[1], bp[5], bp[2], bp[3]));
        if (ndo->ndo_vflag) {
                struct cksum_vec vec[1];
-               vec[0].ptr = (const u_int8_t *)bp;
+               vec[0].ptr = (const uint8_t *)bp;
                vec[0].len = len;
                if (ND_TTEST2(bp[0], len) && in_cksum(vec, 1))
                        ND_PRINT((ndo, " (bad carp cksum %x!)",