Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
[firefly-linux-kernel-4.4.55.git] / include / linux / igmp.h
index ca285527b879af4faf9ea4bbac3233f5441fca95..f510e7e382a89f59c68ddc4e306bb32d8749d2ad 100644 (file)
@@ -85,19 +85,19 @@ struct igmpv3_query {
 
 static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb)
 {
-       return (struct igmphdr *)skb->h.raw;
+       return (struct igmphdr *)skb_transport_header(skb);
 }
 
 static inline struct igmpv3_report *
                        igmpv3_report_hdr(const struct sk_buff *skb)
 {
-       return (struct igmpv3_report *)skb->h.raw;
+       return (struct igmpv3_report *)skb_transport_header(skb);
 }
 
 static inline struct igmpv3_query *
                        igmpv3_query_hdr(const struct sk_buff *skb)
 {
-       return (struct igmpv3_query *)skb->h.raw;
+       return (struct igmpv3_query *)skb_transport_header(skb);
 }
 #endif