]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add flowinfo for tcp6 pkt_options for all cases
authorFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Sun, 8 Dec 2013 14:46:57 +0000 (15:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 02:03:49 +0000 (21:03 -0500)
commit45f8ce2b2beaaa7cc7b328285f32bc686e5333d2
treed6c3ce6a964fd25d5f0348523bf47c28e5af273d
parent6f6aa2dfdfa4a1a3393f6262c6faa2037e303e1d
ipv6: add flowinfo for tcp6 pkt_options for all cases

The current implementation of IPV6_FLOWINFO only gives a
result if pktoptions is available (thanks to the
ip6_datagram_recv_ctl function).
It gives inconsistent results to user space, sometimes
there is a result for getsockopt(IPV6_FLOWINFO), sometimes
not.

This patch add rcv_flowinfo to store it, and return it to
the userspace in the same way than other pkt_options.

Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
net/ipv6/ipv6_sockglue.c
net/ipv6/tcp_ipv6.c