patch-2.4.21 linux-2.4.21/include/linux/netfilter_ipv6/ip6t_ipv6header.h

Next file: linux-2.4.21/include/linux/netfilter_ipv6/ip6t_opts.h
Previous file: linux-2.4.21/include/linux/netfilter_ipv6/ip6t_hl.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/linux/netfilter_ipv6/ip6t_ipv6header.h linux-2.4.21/include/linux/netfilter_ipv6/ip6t_ipv6header.h
@@ -0,0 +1,27 @@
+/* ipv6header match - matches IPv6 packets based
+on whether they contain certain headers */
+
+/* Original idea: Brad Chapman 
+ * Rewritten by: Andras Kis-Szabo <kisza@sch.bme.hu> */
+
+
+#ifndef __IPV6HEADER_H
+#define __IPV6HEADER_H
+
+struct ip6t_ipv6header_info
+{
+	u_int8_t matchflags;
+	u_int8_t invflags;
+	u_int8_t modeflag;
+};
+
+#define MASK_HOPOPTS    128
+#define MASK_DSTOPTS    64
+#define MASK_ROUTING    32
+#define MASK_FRAGMENT   16
+#define MASK_AH         8
+#define MASK_ESP        4
+#define MASK_NONE       2
+#define MASK_PROTO      1
+
+#endif /* __IPV6HEADER_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)