diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-12 19:56:31 -0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:12 -0400 |
| commit | d0a92be05ed4aea7d35c2b257e3f9173565fe4eb (patch) | |
| tree | de57331758805956bcb54dda798e3ca76dd5a46f /include/linux | |
| parent | fd74e6ccd522e2f26163eb5ac1abebcab2bd017c (diff) | |
[SK_BUFF]: Introduce arp_hdr(), remove skb->nh.arph
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/if_arp.h | 9 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h index 7f5714214ee3..ed7b93c3083a 100644 --- a/include/linux/if_arp.h +++ b/include/linux/if_arp.h | |||
| @@ -148,4 +148,13 @@ struct arphdr | |||
| 148 | 148 | ||
| 149 | }; | 149 | }; |
| 150 | 150 | ||
| 151 | #ifdef __KERNEL__ | ||
| 152 | #include <linux/skbuff.h> | ||
| 153 | |||
| 154 | static inline struct arphdr *arp_hdr(const struct sk_buff *skb) | ||
| 155 | { | ||
| 156 | return (struct arphdr *)skb_network_header(skb); | ||
| 157 | } | ||
| 158 | #endif | ||
| 159 | |||
| 151 | #endif /* _LINUX_IF_ARP_H */ | 160 | #endif /* _LINUX_IF_ARP_H */ |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 62f841b5b700..9cb674b12b29 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -248,7 +248,6 @@ struct sk_buff { | |||
| 248 | 248 | ||
| 249 | union { | 249 | union { |
| 250 | struct ipv6hdr *ipv6h; | 250 | struct ipv6hdr *ipv6h; |
| 251 | struct arphdr *arph; | ||
| 252 | unsigned char *raw; | 251 | unsigned char *raw; |
| 253 | } nh; | 252 | } nh; |
| 254 | 253 | ||
