]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/igmp.h
afs: the AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself
[linux-2.6-omap-h63xx.git] / include / linux / igmp.h
index a113fe68d8a1c24c9dfb680e1a1ad0b9fc477ba1..f5a1a0db2e8ecb5d79c25d1483610c93e29546ac 100644 (file)
@@ -130,6 +130,23 @@ struct igmpv3_query {
 #include <linux/timer.h>
 #include <linux/in.h>
 
+static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb)
+{
+       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_transport_header(skb);
+}
+
+static inline struct igmpv3_query *
+                       igmpv3_query_hdr(const struct sk_buff *skb)
+{
+       return (struct igmpv3_query *)skb_transport_header(skb);
+}
+
 extern int sysctl_igmp_max_memberships;
 extern int sysctl_igmp_max_msf;