|
@@ -224,6 +224,7 @@ static struct ipv6_devconf ipv6_devconf __read_mostly = {
|
|
|
.accept_ra_rtr_pref = 1,
|
|
|
.rtr_probe_interval = 60 * HZ,
|
|
|
#ifdef CONFIG_IPV6_ROUTE_INFO
|
|
|
+ .accept_ra_rt_info_min_plen = 0,
|
|
|
.accept_ra_rt_info_max_plen = 0,
|
|
|
#endif
|
|
|
#endif
|
|
@@ -277,6 +278,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
|
|
|
.accept_ra_rtr_pref = 1,
|
|
|
.rtr_probe_interval = 60 * HZ,
|
|
|
#ifdef CONFIG_IPV6_ROUTE_INFO
|
|
|
+ .accept_ra_rt_info_min_plen = 0,
|
|
|
.accept_ra_rt_info_max_plen = 0,
|
|
|
#endif
|
|
|
#endif
|
|
@@ -4979,6 +4981,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf,
|
|
|
array[DEVCONF_RTR_PROBE_INTERVAL] =
|
|
|
jiffies_to_msecs(cnf->rtr_probe_interval);
|
|
|
#ifdef CONFIG_IPV6_ROUTE_INFO
|
|
|
+ array[DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN] = cnf->accept_ra_rt_info_min_plen;
|
|
|
array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen;
|
|
|
#endif
|
|
|
#endif
|
|
@@ -6121,6 +6124,13 @@ static const struct ctl_table addrconf_sysctl[] = {
|
|
|
.proc_handler = proc_dointvec_jiffies,
|
|
|
},
|
|
|
#ifdef CONFIG_IPV6_ROUTE_INFO
|
|
|
+ {
|
|
|
+ .procname = "accept_ra_rt_info_min_plen",
|
|
|
+ .data = &ipv6_devconf.accept_ra_rt_info_min_plen,
|
|
|
+ .maxlen = sizeof(int),
|
|
|
+ .mode = 0644,
|
|
|
+ .proc_handler = proc_dointvec,
|
|
|
+ },
|
|
|
{
|
|
|
.procname = "accept_ra_rt_info_max_plen",
|
|
|
.data = &ipv6_devconf.accept_ra_rt_info_max_plen,
|