X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64677b0d78ff168d98c3035e894c4910c021136e..f052d2b3962c791a541f20a012a43ff471438045:/print-carp.c diff --git a/print-carp.c b/print-carp.c index a5f6d3b6..4d46c97a 100644 --- a/print-carp.c +++ b/print-carp.c @@ -37,10 +37,10 @@ /* \summary: Common Address Redundancy Protocol (CARP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" /* for checksum structure and functions */ #include "extract.h" @@ -51,6 +51,7 @@ carp_print(netdissect_options *ndo, const u_char *bp, u_int len, u_int ttl) u_int version, type; const char *type_s; + ndo->ndo_protocol = "carp"; ND_TCHECK_1(bp); version = (EXTRACT_U_1(bp) & 0xf0) >> 4; type = EXTRACT_U_1(bp) & 0x0f; @@ -79,5 +80,5 @@ carp_print(netdissect_options *ndo, const u_char *bp, u_int len, u_int ttl) return; trunc: - ND_PRINT("[|carp]"); + nd_print_trunc(ndo); }