diff options
Diffstat (limited to 'include/net/ip.h')
-rw-r--r-- | include/net/ip.h | 2 |
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 | ||
47 | static inline unsigned int ip_hdrlen(const struct sk_buff *skb) | 47 | static 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 | ||
52 | struct ipcm_cookie | 52 | struct ipcm_cookie |