datapath: Add ipv6_find_hdr() compatibility function.
[openvswitch] / datapath / linux / compat / include / net / ipv6.h
index 8bb7d656bb637b1099dcc67eca9627eb46e5ae81..9ba85594100f30e745d681839e63b726e513bcff 100644 (file)
@@ -3,6 +3,11 @@
 
 #include_next <net/ipv6.h>
 
+enum {
+       OVS_IP6T_FH_F_FRAG      = (1 << 0),
+       OVS_IP6T_FH_F_AUTH      = (1 << 1),
+};
+
 /* This function is upstream but not the version which supplies the
  * fragment offset.  We plan to propose the extended version.
  */
 extern int ipv6_skip_exthdr(const struct sk_buff *skb, int start,
                                u8 *nexthdrp, __be16 *frag_offp);
 
+/* This function is upstream, but not the version which skips routing
+ * headers with 0 segments_left. We plan to propose the extended version. */
+#define ipv6_find_hdr rpl_ipv6_find_hdr
+extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
+                        int target, unsigned short *fragoff, int *fragflg);
+
 #endif