diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-30 12:01:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-30 12:01:30 -0500 |
commit | e7165030db8e932a9a968f7015cd3b2e984f8e7c (patch) | |
tree | ab46a0baf25f72b7001bb4673ba47534b81a0d2d /include | |
parent | bb728820fe7c42fdb838ab2745fb5fe6b18b5ffa (diff) | |
parent | 92eb1d477145b2e7780b5002e856f70b8c3d74da (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch
Conflicts:
net/ipv6/exthdrs_core.c
Jesse Gross says:
====================
This series of improvements for 3.8/net-next contains four components:
* Support for modifying IPv6 headers
* Support for matching and setting skb->mark for better integration with
things like iptables
* Ability to recognize the EtherType for RARP packets
* Two small performance enhancements
The movement of ipv6_find_hdr() into exthdrs_core.c causes two small merge
conflicts. I left it as is but can do the merge if you want. The conflicts
are:
* ipv6_find_hdr() and ipv6_find_tlv() were both moved to the bottom of
exthdrs_core.c. Both should stay.
* A new use of ipv6_find_hdr() was added to net/netfilter/ipvs/ip_vs_core.c
after this patch. The IPVS user has two instances of the old constant
name IP6T_FH_F_FRAG which has been renamed to IP6_FH_F_FRAG.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter_ipv6/ip6_tables.h | 9 | ||||
-rw-r--r-- | include/linux/openvswitch.h | 1 | ||||
-rw-r--r-- | include/net/ipv6.h | 10 |
3 files changed, 11 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 | ||
50 | enum { | ||
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 */ | ||
56 | extern 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/linux/openvswitch.h b/include/linux/openvswitch.h index eb1efa54fe84..d42e174bd0c8 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h | |||
@@ -243,6 +243,7 @@ enum ovs_key_attr { | |||
243 | OVS_KEY_ATTR_ICMPV6, /* struct ovs_key_icmpv6 */ | 243 | OVS_KEY_ATTR_ICMPV6, /* struct ovs_key_icmpv6 */ |
244 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ | 244 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ |
245 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ | 245 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ |
246 | OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ | ||
246 | __OVS_KEY_ATTR_MAX | 247 | __OVS_KEY_ATTR_MAX |
247 | }; | 248 | }; |
248 | 249 | ||
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 979bf6c13141..acbd8e034310 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -630,6 +630,16 @@ extern int ipv6_skip_exthdr(const struct sk_buff *, int start, | |||
630 | 630 | ||
631 | extern bool ipv6_ext_hdr(u8 nexthdr); | 631 | extern bool ipv6_ext_hdr(u8 nexthdr); |
632 | 632 | ||
633 | enum { | ||
634 | IP6_FH_F_FRAG = (1 << 0), | ||
635 | IP6_FH_F_AUTH = (1 << 1), | ||
636 | IP6_FH_F_SKIP_RH = (1 << 2), | ||
637 | }; | ||
638 | |||
639 | /* find specified header and get offset to it */ | ||
640 | extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, | ||
641 | int target, unsigned short *fragoff, int *fragflg); | ||
642 | |||
633 | extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); | 643 | extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); |
634 | 644 | ||
635 | extern struct in6_addr *fl6_update_dst(struct flowi6 *fl6, | 645 | extern struct in6_addr *fl6_update_dst(struct flowi6 *fl6, |