diff options
author | Florent Fourcot <florent.fourcot@enst-bretagne.fr> | 2014-01-17 11:15:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-19 20:12:31 -0500 |
commit | df3687ffc6653e4d32168338b4dee20c164ed7c9 (patch) | |
tree | 5600a02ddadc63d45a49964db3f9ac02f34e29e6 /include | |
parent | 3acfa1e73c2a2cbf1fda7aef0c6c2c9281ce9db2 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 1 | ||||
-rw-r--r-- | include/uapi/linux/in6.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 7e1ded0d8e45..1084304fd75a 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -191,6 +191,7 @@ struct ipv6_pinfo { | |||
191 | /* sockopt flags */ | 191 | /* sockopt flags */ |
192 | __u16 recverr:1, | 192 | __u16 recverr:1, |
193 | sndflow:1, | 193 | sndflow:1, |
194 | repflow:1, | ||
194 | pmtudisc:3, | 195 | pmtudisc:3, |
195 | ipv6only:1, | 196 | ipv6only:1, |
196 | srcprefs:3, /* 001: prefer temporary address | 197 | srcprefs:3, /* 001: prefer temporary address |
diff --git a/include/uapi/linux/in6.h b/include/uapi/linux/in6.h index f94f1d013bf2..02c0cd685a27 100644 --- a/include/uapi/linux/in6.h +++ b/include/uapi/linux/in6.h | |||
@@ -85,6 +85,7 @@ struct in6_flowlabel_req { | |||
85 | 85 | ||
86 | #define IPV6_FL_F_CREATE 1 | 86 | #define IPV6_FL_F_CREATE 1 |
87 | #define IPV6_FL_F_EXCL 2 | 87 | #define IPV6_FL_F_EXCL 2 |
88 | #define IPV6_FL_F_REFLECT 4 | ||
88 | 89 | ||
89 | #define IPV6_FL_S_NONE 0 | 90 | #define IPV6_FL_S_NONE 0 |
90 | #define IPV6_FL_S_EXCL 1 | 91 | #define IPV6_FL_S_EXCL 1 |