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)
commit1397ed35f22d7c30d0b89ba74b6b7829220dfcfd
treed6c3ce6a964fd25d5f0348523bf47c28e5af273d
parent5824d2d16d39a9c57aa3bacf955fbd0c2134061f
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