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/ip.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/ip.h')
| -rw-r--r-- | include/linux/ip.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index 1d36b971a8b5..bd0a2a8631c6 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h | |||
| @@ -104,6 +104,20 @@ struct iphdr { | |||
| 104 | /*The options start here. */ | 104 | /*The options start here. */ |
| 105 | }; | 105 | }; |
| 106 | 106 | ||
| 107 | #ifdef __KERNEL__ | ||
| 108 | #include <linux/skbuff.h> | ||
| 109 | |||
| 110 | static inline struct iphdr *ip_hdr(const struct sk_buff *skb) | ||
| 111 | { | ||
| 112 | return (struct iphdr *)skb_network_header(skb); | ||
| 113 | } | ||
| 114 | |||
| 115 | static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) | ||
| 116 | { | ||
| 117 | return (struct iphdr *)skb_transport_header(skb); | ||
| 118 | } | ||
| 119 | #endif | ||
| 120 | |||
| 107 | struct ip_auth_hdr { | 121 | struct ip_auth_hdr { |
| 108 | __u8 nexthdr; | 122 | __u8 nexthdr; |
| 109 | __u8 hdrlen; /* This one is measured in 32 bit units! */ | 123 | __u8 hdrlen; /* This one is measured in 32 bit units! */ |
