diff options
Diffstat (limited to 'include/linux/ip.h')
-rw-r--r-- | include/linux/ip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index 58b82a22a52b..492bc6513533 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h | |||
@@ -25,6 +25,11 @@ static inline struct iphdr *ip_hdr(const struct sk_buff *skb) | |||
25 | return (struct iphdr *)skb_network_header(skb); | 25 | return (struct iphdr *)skb_network_header(skb); |
26 | } | 26 | } |
27 | 27 | ||
28 | static inline struct iphdr *inner_ip_hdr(const struct sk_buff *skb) | ||
29 | { | ||
30 | return (struct iphdr *)skb_inner_network_header(skb); | ||
31 | } | ||
32 | |||
28 | static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) | 33 | static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) |
29 | { | 34 | { |
30 | return (struct iphdr *)skb_transport_header(skb); | 35 | return (struct iphdr *)skb_transport_header(skb); |