|
@@ -186,6 +186,7 @@ static struct ipv6_devconf ipv6_devconf __read_mostly = {
|
|
|
.max_desync_factor = MAX_DESYNC_FACTOR,
|
|
|
.max_addresses = IPV6_MAX_ADDRESSES,
|
|
|
.accept_ra_defrtr = 1,
|
|
|
+ .accept_ra_from_local = 0,
|
|
|
.accept_ra_pinfo = 1,
|
|
|
#ifdef CONFIG_IPV6_ROUTER_PREF
|
|
|
.accept_ra_rtr_pref = 1,
|
|
@@ -222,6 +223,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
|
|
|
.max_desync_factor = MAX_DESYNC_FACTOR,
|
|
|
.max_addresses = IPV6_MAX_ADDRESSES,
|
|
|
.accept_ra_defrtr = 1,
|
|
|
+ .accept_ra_from_local = 0,
|
|
|
.accept_ra_pinfo = 1,
|
|
|
#ifdef CONFIG_IPV6_ROUTER_PREF
|
|
|
.accept_ra_rtr_pref = 1,
|
|
@@ -4321,6 +4323,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf,
|
|
|
array[DEVCONF_FORCE_TLLAO] = cnf->force_tllao;
|
|
|
array[DEVCONF_NDISC_NOTIFY] = cnf->ndisc_notify;
|
|
|
array[DEVCONF_SUPPRESS_FRAG_NDISC] = cnf->suppress_frag_ndisc;
|
|
|
+ array[DEVCONF_ACCEPT_RA_FROM_LOCAL] = cnf->accept_ra_from_local;
|
|
|
}
|
|
|
|
|
|
static inline size_t inet6_ifla6_size(void)
|
|
@@ -5167,6 +5170,13 @@ static struct addrconf_sysctl_table
|
|
|
.mode = 0644,
|
|
|
.proc_handler = proc_dointvec
|
|
|
},
|
|
|
+ {
|
|
|
+ .procname = "accept_ra_from_local",
|
|
|
+ .data = &ipv6_devconf.accept_ra_from_local,
|
|
|
+ .maxlen = sizeof(int),
|
|
|
+ .mode = 0644,
|
|
|
+ .proc_handler = proc_dointvec,
|
|
|
+ },
|
|
|
{
|
|
|
/* sentinel */
|
|
|
}
|