X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64677b0d78ff168d98c3035e894c4910c021136e..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-frag6.c diff --git a/print-frag6.c b/print-frag6.c index da8efcc6..618e93bb 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -22,10 +22,10 @@ /* \summary: IPv6 fragmentation header printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -38,6 +38,7 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) const struct ip6_frag *dp; const struct ip6_hdr *ip6; + ndo->ndo_protocol = "frag6"; dp = (const struct ip6_frag *)bp; ip6 = (const struct ip6_hdr *)bp2; @@ -65,6 +66,6 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) return sizeof(struct ip6_frag); } trunc: - ND_PRINT("[|frag]"); + nd_print_trunc(ndo); return -1; }