diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-13 13:43:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:23 -0400 |
commit | 88c7664f13bd1a36acb8566b93892a4c58759ac6 (patch) | |
tree | 18ead610bf54ef87f3832c61d64a4bad30d4f78e /include/linux/icmp.h | |
parent | 4bedb45203eab92a87b4c863fe2d0cded633427f (diff) |
[SK_BUFF]: Introduce icmp_hdr(), remove skb->h.icmph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/icmp.h')
-rw-r--r-- | include/linux/icmp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/icmp.h b/include/linux/icmp.h index 24da4fbc1a2f..cd3017a15789 100644 --- a/include/linux/icmp.h +++ b/include/linux/icmp.h | |||
@@ -82,6 +82,15 @@ struct icmphdr { | |||
82 | } un; | 82 | } un; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | #ifdef __KERNEL__ | ||
86 | #include <linux/skbuff.h> | ||
87 | |||
88 | static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) | ||
89 | { | ||
90 | return (struct icmphdr *)skb->h.raw; | ||
91 | } | ||
92 | #endif | ||
93 | |||
85 | /* | 94 | /* |
86 | * constants for (set|get)sockopt | 95 | * constants for (set|get)sockopt |
87 | */ | 96 | */ |