]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-frag6.c
Fix spaces
[tcpdump] / print-frag6.c
index 634e7c9a12fd488e1121df8af50c599322ced4a7..618e93bbcb25d1b764bde88ddbc4c0e9279c973b 100644 (file)
@@ -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;
 }