diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-04-25 21:02:22 -0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:27 -0400 |
| commit | b0061ce49c83657563b64ffcf1ec137110230d93 (patch) | |
| tree | be6788071fdbc53261ee395f596705e1418461d1 /include/linux | |
| parent | aa8223c7bb0b05183e1737881ed21827aa5b9e73 (diff) | |
[SK_BUFF]: Introduce ipip_hdr(), remove skb->h.ipiph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ip.h | 5 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index f2f26db16f57..19578440b5fc 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h | |||
| @@ -111,6 +111,11 @@ static inline struct iphdr *ip_hdr(const struct sk_buff *skb) | |||
| 111 | { | 111 | { |
| 112 | return (struct iphdr *)skb_network_header(skb); | 112 | return (struct iphdr *)skb_network_header(skb); |
| 113 | } | 113 | } |
| 114 | |||
| 115 | static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) | ||
| 116 | { | ||
| 117 | return (struct iphdr *)skb->h.raw; | ||
| 118 | } | ||
| 114 | #endif | 119 | #endif |
| 115 | 120 | ||
| 116 | struct ip_auth_hdr { | 121 | struct ip_auth_hdr { |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 8f158d66d2a8..862a81cf7f74 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -237,7 +237,6 @@ struct sk_buff { | |||
| 237 | /* 4 byte hole on 64 bit*/ | 237 | /* 4 byte hole on 64 bit*/ |
| 238 | 238 | ||
| 239 | union { | 239 | union { |
| 240 | struct iphdr *ipiph; | ||
| 241 | struct ipv6hdr *ipv6h; | 240 | struct ipv6hdr *ipv6h; |
| 242 | unsigned char *raw; | 241 | unsigned char *raw; |
| 243 | } h; | 242 | } h; |
