Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90250
b: refs/heads/master
c: cc32e05
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Mar 24, 2008
1 parent c8b21a6 commit 0a850e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 414f69d8a6ff0b30e7ea5ce10534b19f851e172e
refs/heads/master: cc32e05416b4023a5466a2f66e3c02236a771c5b
38 changes: 17 additions & 21 deletions trunk/include/linux/igmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,6 @@ struct igmpv3_query {
__be32 srcs[0];
};

#ifdef __KERNEL__
#include <linux/skbuff.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);
}
#endif

#define IGMP_HOST_MEMBERSHIP_QUERY 0x11 /* From RFC1112 */
#define IGMP_HOST_MEMBERSHIP_REPORT 0x12 /* Ditto */
#define IGMP_DVMRP 0x13 /* DVMRP routing */
Expand Down Expand Up @@ -151,6 +130,23 @@ static inline 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;

Expand Down

0 comments on commit 0a850e3

Please sign in to comment.