diff options
| author | lha <lha@NetBSD.org> | 2003-12-17 18:49:38 +0000 |
|---|---|---|
| committer | lha <lha@NetBSD.org> | 2003-12-17 18:49:38 +0000 |
| commit | 2b1cb68e2f7f879d2f59e3faee858e43eba014e8 (patch) | |
| tree | fc6ab301f75006119a594eae6e65b52511a016f8 /sys | |
| parent | 9a77f16705d29e39541a33ec1925624e5ec02d7b (diff) | |
Fix ICMPV6CTL_ND6_[DP]RLIST, they broke with new sysctl.
Makes ndp -r/ndp -p work again, patch from atatat
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netinet6/icmp6.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 85d4b2254e0..522e2a05c06 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $NetBSD: icmp6.c,v 1.103 2003/12/04 19:38:24 atatat Exp $ */ +/* $NetBSD: icmp6.c,v 1.104 2003/12/17 18:49:38 lha Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.103 2003/12/04 19:38:24 atatat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.104 2003/12/17 18:49:38 lha Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -2843,10 +2843,11 @@ static int sysctl_net_inet6_icmp6_nd6(SYSCTLFN_ARGS) { - if (namelen != 1) + if (namelen != 0) return (EINVAL); - return (nd6_sysctl(name[0], oldp, oldlenp, (void*)newp, newlen)); + return (nd6_sysctl(rnode->sysctl_num, oldp, oldlenp, + (void*)newp, newlen)); } SYSCTL_SETUP(sysctl_net_inet6_icmp6_setup, |
