1 #ifndef __LINUX_IP_WRAPPER_H
2 #define __LINUX_IP_WRAPPER_H 1
4 #include_next <linux/ip.h>
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
10 #include <linux/skbuff.h>
12 static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
14 return (struct iphdr *)skb_network_header(skb);
16 #endif /* __KERNEL__ */
18 #endif /* linux kernel < 2.6.22 */