X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1fe6e66ecec3fb7a7cc729038012cbb264542331..c4744fc29aefea62ab751d50d5e4743c3065ef5f:/print-carp.c diff --git a/print-carp.c b/print-carp.c index 976e4f22..c650d181 100644 --- a/print-carp.c +++ b/print-carp.c @@ -34,14 +34,15 @@ * */ -#define NETDISSECT_REWORKED +/* \summary: Common Address Redundancy Protocol (CARP) printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include -#include "interface.h" /* for checksum structure and functions */ +#include "netdissect.h" /* for checksum structure and functions */ #include "extract.h" void @@ -68,7 +69,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!)",