ipv6: add the IPV6_FL_F_REFLECT flag to IPV6_FL_A_GET
authorFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Fri, 17 Jan 2014 16:15:03 +0000 (17:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2014 01:12:31 +0000 (17:12 -0800)
commitdf3687ffc6653e4d32168338b4dee20c164ed7c9
tree5600a02ddadc63d45a49964db3f9ac02f34e29e6
parent3acfa1e73c2a2cbf1fda7aef0c6c2c9281ce9db2
ipv6: add the IPV6_FL_F_REFLECT flag to IPV6_FL_A_GET

With this option, the socket will reply with the flow label value read
on received packets.

The goal is to have a connection with the same flow label in both
direction of the communication.

Changelog of V4:
 * Do not erase the flow label on the listening socket. Use pktopts to
 store the received value

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