aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-24 11:25:11 -0400
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-03 21:44:41 -0400
commitf6a07b293f11d97bfbcd9b6a3ab4ad9c418a36ff (patch)
treeabdf920afded980c33601ea76907e86e6631735f
parenta5b2db67139e991d9e9e19260989d0e66a03a2b2 (diff)
[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>
-rw-r--r--net/ipv6/addrconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 87f688857ade..11037615bc73 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -3877,7 +3877,7 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table,
3877static struct addrconf_sysctl_table 3877static struct addrconf_sysctl_table
3878{ 3878{
3879 struct ctl_table_header *sysctl_header; 3879 struct ctl_table_header *sysctl_header;
3880 ctl_table addrconf_vars[__NET_IPV6_MAX]; 3880 ctl_table addrconf_vars[DEVCONF_MAX+1];
3881 char *dev_name; 3881 char *dev_name;
3882} addrconf_sysctl __read_mostly = { 3882} addrconf_sysctl __read_mostly = {
3883 .sysctl_header = NULL, 3883 .sysctl_header = NULL,