]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-frag6.c
Fix spaces
[tcpdump] / print-frag6.c
index da8efcc6fc7eb1efd5031c77252db0971079a8ff..618e93bbcb25d1b764bde88ddbc4c0e9279c973b 100644 (file)
 /* \summary: IPv6 fragmentation header printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#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;
 }