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