diff options
author | Eric Dumazet <edumazet@google.com> | 2019-06-05 16:55:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-06 04:05:01 +0200 |
commit | 323a53c41292a0d7efc8748856c623324c8d7c21 (patch) | |
tree | 9c00710cc2f3b2d2df62d62633a1de21f5fa3e68 /net/ipv6/sysctl_net_ipv6.c | |
parent | lib: objagg: Use struct_size() in kzalloc() (diff) | |
download | linux-323a53c41292a0d7efc8748856c623324c8d7c21.tar.xz linux-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/sysctl_net_ipv6.c')
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index e15cd37024fd..6d86fac472e7 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -23,6 +23,7 @@ static int zero; static int one = 1; +static int three = 3; static int auto_flowlabels_min; static int auto_flowlabels_max = IP6_AUTO_FLOW_LABEL_MAX; @@ -114,6 +115,8 @@ static struct ctl_table ipv6_table_template[] = { .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, + .extra1 = &zero, + .extra2 = &three, }, { .procname = "max_dst_opts_number", |