ipv6: reuse ip6_frag_id from ip6_ufo_append_data
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 21 Feb 2014 01:55:35 +0000 (02:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Feb 2014 05:28:21 +0000 (00:28 -0500)
commitf07511624590e0cb7031ac93287cdf72b51dee2d
tree2770571fb4c9f109eda3ea1cad8f5aa9f3248bb7
parent1864f3087e2468600576c03b5d73fb369430a779
ipv6: reuse ip6_frag_id from ip6_ufo_append_data

Currently we generate a new fragmentation id on UFO segmentation. It
is pretty hairy to identify the correct net namespace and dst there.
Especially tunnels use IFF_XMIT_DST_RELEASE and thus have no skb_dst
available at all.

This causes unreliable or very predictable ipv6 fragmentation id
generation while segmentation.

Luckily we already have pregenerated the ip6_frag_id in
ip6_ufo_append_data and can use it here.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp_offload.c