mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
[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>
This commit is contained in:
parent
fd74e6ccd5
commit
d0a92be05e
10 changed files with 19 additions and 11 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -248,7 +248,6 @@ struct sk_buff {
|
|||
|
||||
union {
|
||||
struct ipv6hdr *ipv6h;
|
||||
struct arphdr *arph;
|
||||
unsigned char *raw;
|
||||
} nh;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue