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/icmp.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/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..474f2a51cf0a 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_transport_header(skb); | ||
| 91 | } | ||
| 92 | #endif | ||
| 93 | |||
| 85 | /* | 94 | /* |
| 86 | * constants for (set|get)sockopt | 95 | * constants for (set|get)sockopt |
| 87 | */ | 96 | */ |
