Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 PR 49036: net.inet6 has not been created when t...



details:   https://anonhg.NetBSD.org/src/rev/6b7b9d7434a8
branches:  trunk
changeset: 331014:6b7b9d7434a8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jul 26 22:21:16 2014 +0000

description:
PR 49036: net.inet6 has not been created when the sysctl constructor
for net.inet6.multicast is run.

diffstat:

 sys/netinet6/mld6.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 2dabdd4bad5b -r 6b7b9d7434a8 sys/netinet6/mld6.c
--- a/sys/netinet6/mld6.c       Sat Jul 26 21:36:40 2014 +0000
+++ b/sys/netinet6/mld6.c       Sat Jul 26 22:21:16 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mld6.c,v 1.58 2014/07/25 07:12:55 ozaki-r Exp $        */
+/*     $NetBSD: mld6.c,v 1.59 2014/07/26 22:21:16 joerg Exp $  */
 /*     $KAME: mld6.c,v 1.25 2001/01/16 14:14:18 itojun Exp $   */
 
 /*
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.58 2014/07/25 07:12:55 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.59 2014/07/26 22:21:16 joerg Exp $");
 
 #include "opt_inet.h"
 
@@ -1028,6 +1028,12 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
+                      CTLTYPE_NODE, "inet6", NULL,
+                      NULL, 0, NULL, 0,
+                      CTL_NET, PF_INET6, CTL_EOL);
+
+       sysctl_createv(clog, 0, NULL, NULL,
+                      CTLFLAG_PERMANENT,
                       CTLTYPE_NODE, "multicast",
                       SYSCTL_DESCR("Multicast information"),
                       in6_multicast_sysctl, 0, NULL, 0,



Home | Main Index | Thread Index | Old Index