summaryrefslogtreecommitdiff
path: root/print-ip6.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-ip6.c')
-rw-r--r--print-ip6.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/print-ip6.c b/print-ip6.c
index 7311c8ff869a4..dd6b7f5105adb 100644
--- a/print-ip6.c
+++ b/print-ip6.c
@@ -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 */