ipv6: hash net ptr into fragmentation bucket selection
As namespaces are sometimes used with overlapping ip address ranges, we should also use the namespace as input to the hash to select the ip fragmentation counter bucket. Cc: Eric Dumazet <edumazet@google.com> Cc: Flavio Leitner <fbl@redhat.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b6a7719aed
commit
5a352dd0a3
@@ -54,7 +54,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
|
||||
|
||||
/* Set the IPv6 fragment id if not set yet */
|
||||
if (!skb_shinfo(skb)->ip6_frag_id)
|
||||
ipv6_proxy_select_ident(skb);
|
||||
ipv6_proxy_select_ident(dev_net(skb->dev), skb);
|
||||
|
||||
segs = NULL;
|
||||
goto out;
|
||||
@@ -113,7 +113,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
|
||||
fptr->nexthdr = nexthdr;
|
||||
fptr->reserved = 0;
|
||||
if (!skb_shinfo(skb)->ip6_frag_id)
|
||||
ipv6_proxy_select_ident(skb);
|
||||
ipv6_proxy_select_ident(dev_net(skb->dev), skb);
|
||||
fptr->identification = skb_shinfo(skb)->ip6_frag_id;
|
||||
|
||||
/* Fragment the skb. ipv6 header and the remaining fields of the
|
||||
|
Reference in New Issue
Block a user