|
@@ -195,6 +195,7 @@ static struct ipv6_devconf ipv6_devconf __read_mostly = {
|
|
|
.max_addresses = IPV6_MAX_ADDRESSES,
|
|
|
.accept_ra_defrtr = 1,
|
|
|
.accept_ra_from_local = 0,
|
|
|
+ .accept_ra_min_hop_limit= 1,
|
|
|
.accept_ra_pinfo = 1,
|
|
|
#ifdef CONFIG_IPV6_ROUTER_PREF
|
|
|
.accept_ra_rtr_pref = 1,
|
|
@@ -237,6 +238,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
|
|
|
.max_addresses = IPV6_MAX_ADDRESSES,
|
|
|
.accept_ra_defrtr = 1,
|
|
|
.accept_ra_from_local = 0,
|
|
|
+ .accept_ra_min_hop_limit= 1,
|
|
|
.accept_ra_pinfo = 1,
|
|
|
#ifdef CONFIG_IPV6_ROUTER_PREF
|
|
|
.accept_ra_rtr_pref = 1,
|
|
@@ -4588,6 +4590,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf,
|
|
|
array[DEVCONF_MAX_DESYNC_FACTOR] = cnf->max_desync_factor;
|
|
|
array[DEVCONF_MAX_ADDRESSES] = cnf->max_addresses;
|
|
|
array[DEVCONF_ACCEPT_RA_DEFRTR] = cnf->accept_ra_defrtr;
|
|
|
+ array[DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT] = cnf->accept_ra_min_hop_limit;
|
|
|
array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo;
|
|
|
#ifdef CONFIG_IPV6_ROUTER_PREF
|
|
|
array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref;
|
|
@@ -5484,6 +5487,13 @@ static struct addrconf_sysctl_table
|
|
|
.mode = 0644,
|
|
|
.proc_handler = proc_dointvec,
|
|
|
},
|
|
|
+ {
|
|
|
+ .procname = "accept_ra_min_hop_limit",
|
|
|
+ .data = &ipv6_devconf.accept_ra_min_hop_limit,
|
|
|
+ .maxlen = sizeof(int),
|
|
|
+ .mode = 0644,
|
|
|
+ .proc_handler = proc_dointvec,
|
|
|
+ },
|
|
|
{
|
|
|
.procname = "accept_ra_pinfo",
|
|
|
.data = &ipv6_devconf.accept_ra_pinfo,
|