aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2012-11-09 20:05:07 -0500
committerJesse Gross <jesse@nicira.com>2012-11-09 20:05:07 -0500
commitf8f626754ebeca613cf1af2e6f890cfde0e74d5b (patch)
tree359723681fd28b4c6c523229dcf5c6c3fadfd60c /include
parentc0618533815d8d92b270f03c11042ea53a8045d2 (diff)
ipv6: Move ipv6_find_hdr() out of Netfilter code.
Open vSwitch will soon also use ipv6_find_hdr() so this moves it out of Netfilter-specific code into a more common location. Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter_ipv6/ip6_tables.h9
-rw-r--r--include/net/ipv6.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h
index 5f84c6229dc6..610208b18c05 100644
--- a/include/linux/netfilter_ipv6/ip6_tables.h
+++ b/include/linux/netfilter_ipv6/ip6_tables.h
@@ -47,15 +47,6 @@ ip6t_ext_hdr(u8 nexthdr)
47 (nexthdr == IPPROTO_DSTOPTS); 47 (nexthdr == IPPROTO_DSTOPTS);
48} 48}
49 49
50enum {
51 IP6T_FH_F_FRAG = (1 << 0),
52 IP6T_FH_F_AUTH = (1 << 1),
53};
54
55/* find specified header and get offset to it */
56extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
57 int target, unsigned short *fragoff, int *fragflg);
58
59#ifdef CONFIG_COMPAT 50#ifdef CONFIG_COMPAT
60#include <net/compat.h> 51#include <net/compat.h>
61 52
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 979bf6c13141..b2f0cfb0a381 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -630,6 +630,15 @@ extern int ipv6_skip_exthdr(const struct sk_buff *, int start,
630 630
631extern bool ipv6_ext_hdr(u8 nexthdr); 631extern bool ipv6_ext_hdr(u8 nexthdr);
632 632
633enum {
634 IP6_FH_F_FRAG = (1 << 0),
635 IP6_FH_F_AUTH = (1 << 1),
636};
637
638/* find specified header and get offset to it */
639extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
640 int target, unsigned short *fragoff, int *fragflg);
641
633extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); 642extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type);
634 643
635extern struct in6_addr *fl6_update_dst(struct flowi6 *fl6, 644extern struct in6_addr *fl6_update_dst(struct flowi6 *fl6,