[SK_BUFF]: Introduce ipipv6_hdr(), remove skb->h.ipv6h
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
b0061ce49c
commit
39b89160df
4 changed files with 11 additions and 7 deletions
|
@ -228,6 +228,11 @@ static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb)
|
|||
return (struct ipv6hdr *)skb_network_header(skb);
|
||||
}
|
||||
|
||||
static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb)
|
||||
{
|
||||
return (struct ipv6hdr *)skb->h.raw;
|
||||
}
|
||||
|
||||
/*
|
||||
This structure contains results of exthdrs parsing
|
||||
as offsets from skb->nh.
|
||||
|
|
|
@ -237,7 +237,6 @@ struct sk_buff {
|
|||
/* 4 byte hole on 64 bit*/
|
||||
|
||||
union {
|
||||
struct ipv6hdr *ipv6h;
|
||||
unsigned char *raw;
|
||||
} h;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue