aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/igmp.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-25 21:04:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:31 -0400
commit9c70220b73908f64792422a2c39c593c4792f2c5 (patch)
tree2090ea10aaa2714a5e095bae8cc02e743c378a3a /include/linux/igmp.h
parenta27ef749e7be3b06fb58df53d94eb97a21f18707 (diff)
[SK_BUFF]: Introduce skb_transport_header(skb)
For the places where we need a pointer to the transport header, it is still legal to touch skb->h.raw directly if just adding to, subtracting from or setting it to another layer header. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/igmp.h')
-rw-r--r--include/linux/igmp.h6
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
86static inline struct igmphdr *igmp_hdr(const struct sk_buff *skb) 86static 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
91static inline struct igmpv3_report * 91static 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
97static inline struct igmpv3_query * 97static 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