diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2007-04-27 14:16:19 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-27 14:16:19 -0400 |
| commit | d1da4e50e5d09f02c340927a4fcb7f54202fa033 (patch) | |
| tree | 7f98317bdd45dbdb7644e9179891c5af6a3a8ef1 /include/linux/igmp.h | |
| parent | 78ab67da1002d954ea4c3e2b441e2483c41f94e8 (diff) | |
| parent | a205752d1ad2d37d6597aaae5a56fc396a770868 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/mtd/Kconfig
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/igmp.h')
| -rw-r--r-- | include/linux/igmp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/igmp.h b/include/linux/igmp.h index a113fe68d8a1..f510e7e382a8 100644 --- a/include/linux/igmp.h +++ b/include/linux/igmp.h | |||
| @@ -80,6 +80,27 @@ struct igmpv3_query { | |||
| 80 | __be32 srcs[0]; | 80 | __be32 srcs[0]; |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | #ifdef __KERNEL__ | ||
| 84 | #include <linux/skbuff.h> | ||
| 85 | |||
| 86 | static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb) | ||
| 87 | { | ||
| 88 | return (struct igmphdr *)skb_transport_header(skb); | ||
| 89 | } | ||
| 90 | |||
| 91 | static inline struct igmpv3_report * | ||
| 92 | igmpv3_report_hdr(const struct sk_buff *skb) | ||
| 93 | { | ||
| 94 | return (struct igmpv3_report *)skb_transport_header(skb); | ||
| 95 | } | ||
| 96 | |||
| 97 | static inline struct igmpv3_query * | ||
| 98 | igmpv3_query_hdr(const struct sk_buff *skb) | ||
| 99 | { | ||
| 100 | return (struct igmpv3_query *)skb_transport_header(skb); | ||
| 101 | } | ||
| 102 | #endif | ||
| 103 | |||
| 83 | #define IGMP_HOST_MEMBERSHIP_QUERY 0x11 /* From RFC1112 */ | 104 | #define IGMP_HOST_MEMBERSHIP_QUERY 0x11 /* From RFC1112 */ |
| 84 | #define IGMP_HOST_MEMBERSHIP_REPORT 0x12 /* Ditto */ | 105 | #define IGMP_HOST_MEMBERSHIP_REPORT 0x12 /* Ditto */ |
| 85 | #define IGMP_DVMRP 0x13 /* DVMRP routing */ | 106 | #define IGMP_DVMRP 0x13 /* DVMRP routing */ |
