]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Select fragment id during UFO segmentation if not set.
authorVlad Yasevich <vyasevich@gmail.com>
Tue, 3 Feb 2015 21:36:15 +0000 (16:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Feb 2015 07:06:43 +0000 (23:06 -0800)
commit5b65d0ae7d2a04c5a6ac28e84d7a11fb8aecdab6
tree268267ccdf554b7872644c5d5b52d4fccb2757ed
parentab391050c47d280128abb307bfc0aab0ff06d2cd
ipv6: Select fragment id during UFO segmentation if not set.

If the IPv6 fragment id has not been set and we perform
fragmentation due to UFO, select a new fragment id.
We now consider a fragment id of 0 as unset and if id selection
process returns 0 (after all the pertrubations), we set it to
0x80000000, thus giving us ample space not to create collisions
with the next packet we may have to fragment.

When doing UFO integrity checking, we also select the
fragment id if it has not be set yet.   This is stored into
the skb_shinfo() thus allowing UFO to function correclty.

This patch also removes duplicate fragment id generation code
and moves ipv6_select_ident() into the header as it may be
used during GSO.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/ip6_output.c
net/ipv6/output_core.c
net/ipv6/udp_offload.c