diff options
author | Eric Dumazet <edumazet@google.com> | 2019-06-05 07:55:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-05 19:05:01 -0700 |
commit | 323a53c41292a0d7efc8748856c623324c8d7c21 (patch) | |
tree | 9c00710cc2f3b2d2df62d62633a1de21f5fa3e68 /net/ipv6/af_inet6.c | |
parent | e736bf72af568d0a04f186e1c5dde6789b19c35e (diff) | |
download | lwn-323a53c41292a0d7efc8748856c623324c8d7c21.tar.gz lwn-323a53c41292a0d7efc8748856c623324c8d7c21.zip |
ipv6: tcp: enable flowlabel reflection in some RST packets
When RST packets are sent because no socket could be found,
it makes sense to use flowlabel_reflect sysctl to decide
if a reflection of the flowlabel is requested.
This extends commit 22b6722bfa59 ("ipv6: Add sysctl for per
namespace flow label reflection"), for some TCP RST packets.
In order to provide full control of this new feature,
flowlabel_reflect becomes a bitmask.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index cc6f8d0c625a..ceab2fe2833b 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -212,7 +212,7 @@ lookup_protocol: np->mc_loop = 1; np->mc_all = 1; np->pmtudisc = IPV6_PMTUDISC_WANT; - np->repflow = net->ipv6.sysctl.flowlabel_reflect; + np->repflow = net->ipv6.sysctl.flowlabel_reflect & 1; sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; /* Init the ipv4 part of the socket since we can have sockets |