mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
[IPV6] ADDRCONF: Fix array size for sysctls.
We have been using __NET_IPV6_MAX for adjusting the size of array for sysctl table, but it does not work any longer because of the deprecation of NET_IPV6_xxx constants. Let's use DEVCONF_MAX instead. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
parent
a5b2db6713
commit
f6a07b293f
1 changed files with 1 additions and 1 deletions
|
@ -3877,7 +3877,7 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table,
|
||||||
static struct addrconf_sysctl_table
|
static struct addrconf_sysctl_table
|
||||||
{
|
{
|
||||||
struct ctl_table_header *sysctl_header;
|
struct ctl_table_header *sysctl_header;
|
||||||
ctl_table addrconf_vars[__NET_IPV6_MAX];
|
ctl_table addrconf_vars[DEVCONF_MAX+1];
|
||||||
char *dev_name;
|
char *dev_name;
|
||||||
} addrconf_sysctl __read_mostly = {
|
} addrconf_sysctl __read_mostly = {
|
||||||
.sysctl_header = NULL,
|
.sysctl_header = NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue