[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:
committed by
David S. Miller
parent
b0061ce49c
commit
39b89160df
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user