datapath: ipv6_skip_exthdr() is now fully upstream.
[openvswitch] / datapath / linux / compat / include / net / ipv6.h
1 #ifndef __NET_IPV6_WRAPPER_H
2 #define __NET_IPV6_WRAPPER_H 1
3
4 #include <linux/version.h>
5
6 #include_next <net/ipv6.h>
7
8 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
9 #define ipv6_skip_exthdr rpl_ipv6_skip_exthdr
10 extern int ipv6_skip_exthdr(const struct sk_buff *skb, int start,
11                             u8 *nexthdrp, __be16 *frag_offp);
12 #endif
13
14 enum {
15         OVS_IP6T_FH_F_FRAG      = (1 << 0),
16         OVS_IP6T_FH_F_AUTH      = (1 << 1),
17         OVS_IP6T_FH_F_SKIP_RH   = (1 << 2),
18 };
19
20 /* This function is upstream, but not the version which skips routing
21  * headers with 0 segments_left. We plan to propose the extended version. */
22 #define ipv6_find_hdr rpl_ipv6_find_hdr
23 extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
24                          int target, unsigned short *fragoff, int *fragflg);
25
26 #endif