[SK_BUFF]: Introduce ipv6_hdr(), remove skb->nh.ipv6h
Now the skb->nh union has just one member, .raw, i.e. it is just like the skb->mac union, strange, no? I'm just leaving it like that till the transport layer is done with, when we'll rename skb->mac.raw to skb->mac_header (or ->mac_header_offset?), ditto for ->{h,nh}. 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
d0a92be05e
commit
0660e03f6b
@@ -325,6 +325,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
|
||||
*/
|
||||
|
||||
struct ipv6_auth_hdr *ah;
|
||||
struct ipv6hdr *ip6h;
|
||||
struct ah_data *ahp;
|
||||
unsigned char *tmp_hdr = NULL;
|
||||
u16 hdr_len;
|
||||
@@ -357,13 +358,14 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
|
||||
tmp_hdr = kmemdup(skb_network_header(skb), hdr_len, GFP_ATOMIC);
|
||||
if (!tmp_hdr)
|
||||
goto out;
|
||||
if (ipv6_clear_mutable_options(skb->nh.ipv6h, hdr_len, XFRM_POLICY_IN))
|
||||
ip6h = ipv6_hdr(skb);
|
||||
if (ipv6_clear_mutable_options(ip6h, hdr_len, XFRM_POLICY_IN))
|
||||
goto free_out;
|
||||
skb->nh.ipv6h->priority = 0;
|
||||
skb->nh.ipv6h->flow_lbl[0] = 0;
|
||||
skb->nh.ipv6h->flow_lbl[1] = 0;
|
||||
skb->nh.ipv6h->flow_lbl[2] = 0;
|
||||
skb->nh.ipv6h->hop_limit = 0;
|
||||
ip6h->priority = 0;
|
||||
ip6h->flow_lbl[0] = 0;
|
||||
ip6h->flow_lbl[1] = 0;
|
||||
ip6h->flow_lbl[2] = 0;
|
||||
ip6h->hop_limit = 0;
|
||||
|
||||
{
|
||||
u8 auth_data[MAX_AH_AUTH_LEN];
|
||||
|
Reference in New Issue
Block a user