diff options
author | Eric Dumazet <edumazet@google.com> | 2019-07-01 15:39:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-01 19:54:51 +0200 |
commit | a346abe051bd2bd0d5d0140b2da9ec95639acad7 (patch) | |
tree | 1e03874ac049b3d298d382e678a84b68f7ce5f12 /net/ipv6/sysctl_net_ipv6.c | |
parent | Merge tag 'mlx5e-updates-2019-06-28' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-a346abe051bd2bd0d5d0140b2da9ec95639acad7.tar.xz linux-a346abe051bd2bd0d5d0140b2da9ec95639acad7.zip |
ipv6: icmp: allow flowlabel reflection in echo replies
Extend flowlabel_reflect bitmask to allow conditional
reflection of incoming flowlabels in echo replies.
Note this has precedence against auto flowlabels.
Add flowlabel_reflect enum to replace hard coded
values.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 6d86fac472e7..8b3fe81783ed 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -23,7 +23,7 @@ static int zero; static int one = 1; -static int three = 3; +static int flowlabel_reflect_max = 0x7; static int auto_flowlabels_min; static int auto_flowlabels_max = IP6_AUTO_FLOW_LABEL_MAX; @@ -116,7 +116,7 @@ static struct ctl_table ipv6_table_template[] = { .mode = 0644, .proc_handler = proc_dointvec, .extra1 = &zero, - .extra2 = &three, + .extra2 = &flowlabel_reflect_max, }, { .procname = "max_dst_opts_number", |