1 #ifndef __LINUX_IPV6_WRAPPER_H
2 #define __LINUX_IPV6_WRAPPER_H 1
4 #include_next <linux/ipv6.h>
7 #ifndef HAVE_SKBUFF_HEADER_HELPERS
8 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb)
10 return (struct ipv6hdr *)skb_network_header(skb);
14 /* This function is upstream but not the version which supplies the
15 * fragment offset. We plan to propose the extended version.
17 #define ipv6_skip_exthdr rpl_ipv6_skip_exthdr
18 extern int rpl_ipv6_skip_exthdr(const struct sk_buff *skb, int start,
19 u8 *nexthdrp, __be16 *frag_offp);