aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip.h')
-rw-r--r--include/net/ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 6f7ba32b199d..75f226d26e0d 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -46,7 +46,7 @@ struct inet_skb_parm
46 46
47static inline unsigned int ip_hdrlen(const struct sk_buff *skb) 47static inline unsigned int ip_hdrlen(const struct sk_buff *skb)
48{ 48{
49 return skb->nh.iph->ihl * 4; 49 return ip_hdr(skb)->ihl * 4;
50} 50}
51 51
52struct ipcm_cookie 52struct ipcm_cookie