summaryrefslogtreecommitdiff
path: root/proto_ipv6_in_ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto_ipv6_in_ipv4.c')
-rw-r--r--proto_ipv6_in_ipv4.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/proto_ipv6_in_ipv4.c b/proto_ipv6_in_ipv4.c
new file mode 100644
index 0000000..69eaadc
--- /dev/null
+++ b/proto_ipv6_in_ipv4.c
@@ -0,0 +1,25 @@
+/*
+ * netsniff-ng - the packet sniffing beast
+ * Copyright 2012 Markus Amend <markus@netsniff-ng.org>, Deutsche Flugsicherung GmbH
+ * Subject to the GPL, version 2.
+ *
+ * IPv6 in IPv4 encapsulation described in RFC3056
+ */
+
+#include <stdio.h>
+#include <stdint.h>
+#include <netinet/in.h> /* for ntohs() */
+
+#include "proto.h"
+#include "protos.h"
+#include "dissector_eth.h"
+#include "built_in.h"
+
+extern void ipv6(struct pkt_buff *pkt);
+extern void ipv6_less(struct pkt_buff *pkt);
+
+struct protocol ipv6_in_ipv4_ops = {
+ .key = 0x29,
+ .print_full = ipv6,
+ .print_less = ipv6_less,
+};