]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
Do the dump file Capsicum stuff in a common routine.
[tcpdump] / print-ip6.c
index 7311c8ff869a4fa33dd9050d005a18dcb1f01163..dd6b7f5105adb6037059988ca943547d566d14bf 100644 (file)
@@ -24,8 +24,6 @@
 #include "config.h"
 #endif
 
-#ifdef INET6
-
 #include <tcpdump-stdinc.h>
 
 #include <string.h>
@@ -34,6 +32,8 @@
 #include "addrtoname.h"
 #include "extract.h"
 
+#ifdef INET6
+
 #include "ip6.h"
 #include "ipproto.h"
 
@@ -266,4 +266,12 @@ trunc:
        ND_PRINT((ndo, "[|ip6]"));
 }
 
+#else /* INET6 */
+
+void
+ip6_print(netdissect_options *ndo, const u_char *bp _U_, u_int length)
+{
+       ND_PRINT((ndo, "IP6, length: %u (printing not supported)", length));
+}
+
 #endif /* INET6 */