diff options
Diffstat (limited to 'include/linux/igmp.h')
-rw-r--r-- | include/linux/igmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/igmp.h b/include/linux/igmp.h index ca285527b879..f510e7e382a8 100644 --- a/include/linux/igmp.h +++ b/include/linux/igmp.h | |||
@@ -85,19 +85,19 @@ struct igmpv3_query { | |||
85 | 85 | ||
86 | static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb) | 86 | static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb) |
87 | { | 87 | { |
88 | return (struct igmphdr *)skb->h.raw; | 88 | return (struct igmphdr *)skb_transport_header(skb); |
89 | } | 89 | } |
90 | 90 | ||
91 | static inline struct igmpv3_report * | 91 | static inline struct igmpv3_report * |
92 | igmpv3_report_hdr(const struct sk_buff *skb) | 92 | igmpv3_report_hdr(const struct sk_buff *skb) |
93 | { | 93 | { |
94 | return (struct igmpv3_report *)skb->h.raw; | 94 | return (struct igmpv3_report *)skb_transport_header(skb); |
95 | } | 95 | } |
96 | 96 | ||
97 | static inline struct igmpv3_query * | 97 | static inline struct igmpv3_query * |
98 | igmpv3_query_hdr(const struct sk_buff *skb) | 98 | igmpv3_query_hdr(const struct sk_buff *skb) |
99 | { | 99 | { |
100 | return (struct igmpv3_query *)skb->h.raw; | 100 | return (struct igmpv3_query *)skb_transport_header(skb); |
101 | } | 101 | } |
102 | #endif | 102 | #endif |
103 | 103 | ||