ipv6: introduce idgen_delay and idgen_retries knobs
This is specified by RFC 7217. Cc: Erik Kline <ek@google.com> Cc: Fernando Gont <fgont@si6networks.com> Cc: Lorenzo Colitti <lorenzo@google.com> Cc: YOSHIFUJI Hideaki/吉藤英明 <hideaki.yoshifuji@miraclelinux.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5f40ef77ad
commit
1855b7c3e8
@@ -54,6 +54,20 @@ static struct ctl_table ipv6_table_template[] = {
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec
|
||||
},
|
||||
{
|
||||
.procname = "idgen_retries",
|
||||
.data = &init_net.ipv6.sysctl.idgen_retries,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
{
|
||||
.procname = "idgen_delay",
|
||||
.data = &init_net.ipv6.sysctl.idgen_delay,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec_jiffies,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
|
||||
@@ -93,6 +107,8 @@ static int __net_init ipv6_sysctl_net_init(struct net *net)
|
||||
ipv6_table[2].data = &net->ipv6.sysctl.flowlabel_consistency;
|
||||
ipv6_table[3].data = &net->ipv6.sysctl.auto_flowlabels;
|
||||
ipv6_table[4].data = &net->ipv6.sysctl.fwmark_reflect;
|
||||
ipv6_table[5].data = &net->ipv6.sysctl.idgen_retries;
|
||||
ipv6_table[6].data = &net->ipv6.sysctl.idgen_delay;
|
||||
|
||||
ipv6_route_table = ipv6_route_sysctl_init(net);
|
||||
if (!ipv6_route_table)
|
||||
|
Reference in New Issue
Block a user