X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c1c3c77463d592cc576eaa491e604752044ca55a..5287bffd3f4fa1fda9d7734b45f8cf02391d3855:/print-carp.c diff --git a/print-carp.c b/print-carp.c index c7a74379..918617bd 100644 --- a/print-carp.c +++ b/print-carp.c @@ -34,11 +34,13 @@ * */ +/* \summary: Common Address Redundancy Protocol (CARP) printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include #include "netdissect.h" /* for checksum structure and functions */ #include "extract.h" @@ -71,9 +73,9 @@ carp_print(netdissect_options *ndo, register const u_char *bp, register u_int le vec[0].len = len; if (ND_TTEST2(bp[0], len) && in_cksum(vec, 1)) ND_PRINT((ndo, " (bad carp cksum %x!)", - EXTRACT_16BITS(&bp[6]))); + EXTRACT_BE_16BITS(&bp[6]))); } - ND_PRINT((ndo, "counter=%" PRIu64, EXTRACT_64BITS(&bp[8]))); + ND_PRINT((ndo, "counter=%" PRIu64, EXTRACT_BE_64BITS(&bp[8]))); return; trunc: