diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-12 20:56:31 -0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:25:12 -0700 |
commit | d0a92be05ed4aea7d35c2b257e3f9173565fe4eb (patch) | |
tree | de57331758805956bcb54dda798e3ca76dd5a46f /include/linux/if_arp.h | |
parent | fd74e6ccd522e2f26163eb5ac1abebcab2bd017c (diff) | |
download | kernel_samsung_aries-d0a92be05ed4aea7d35c2b257e3f9173565fe4eb.zip kernel_samsung_aries-d0a92be05ed4aea7d35c2b257e3f9173565fe4eb.tar.gz kernel_samsung_aries-d0a92be05ed4aea7d35c2b257e3f9173565fe4eb.tar.bz2 |
[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/if_arp.h')
-rw-r--r-- | include/linux/if_arp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h index 7f57142..ed7b93c 100644 --- a/include/linux/if_arp.h +++ b/include/linux/if_arp.h @@ -148,4 +148,13 @@ struct arphdr }; +#ifdef __KERNEL__ +#include <linux/skbuff.h> + +static inline struct arphdr *arp_hdr(const struct sk_buff *skb) +{ + return (struct arphdr *)skb_network_header(skb); +} +#endif + #endif /* _LINUX_IF_ARP_H */ |