1 #ifndef __LINUX_IP_WRAPPER_H
2 #define __LINUX_IP_WRAPPER_H 1
4 #include_next <linux/ip.h>
7 #include <linux/skbuff.h>
9 static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
11 return (struct iphdr *)skb_network_header(skb);
14 static inline unsigned int ip_hdrlen(const struct sk_buff *skb)
16 return ip_hdr(skb)->ihl * 4;