summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorent Fourcot2013-12-08 15:46:57 +0100
committerDavid S. Miller2013-12-10 03:03:49 +0100
commit1397ed35f22d7c30d0b89ba74b6b7829220dfcfd (patch)
treed6c3ce6a964fd25d5f0348523bf47c28e5af273d /include
parentbgmac: connect to PHY and make use of PHY device (diff)
downloadkernel-qcow2-linux-1397ed35f22d7c30d0b89ba74b6b7829220dfcfd.tar.gz
kernel-qcow2-linux-1397ed35f22d7c30d0b89ba74b6b7829220dfcfd.tar.xz
kernel-qcow2-linux-1397ed35f22d7c30d0b89ba74b6b7829220dfcfd.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index c56c350324e4..0b2ebfbbe0f4 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -201,6 +201,7 @@ struct ipv6_pinfo {
__u8 min_hopcount;
__u8 tclass;
__u8 rcv_tclass;
+ __be32 rcv_flowinfo;
__u32 dst_cookie;
__u32 rx_dst_cookie;