> Interestingly, "sysctl -a -N" spits out names, but then seems to fall
> into a rut:
> 
[....]
> net.inet.udp.getcred
> net.inet.accf.unloadable
> net.inet.accf.373
> net.inet.accf.373
> net.inet.accf.373
[....]

> Looks as if it's looping with no termination conditions being matched.

When I got the same problem on my -current machine today, I found that
net.inet.accf and net.inet.raw had the same oid.

The system booted normally after changing the start oid for
dynamically assigned sysctl entries from 100 to 256.

- Tor Egge

Index: sys/kern/kern_sysctl.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_sysctl.c,v
retrieving revision 1.110
diff -u -r1.110 kern_sysctl.c
--- sys/kern/kern_sysctl.c      2001/06/22 19:54:38     1.110
+++ sys/kern/kern_sysctl.c      2001/07/22 09:33:11
@@ -110,10 +110,10 @@
        /*
         * If this oid has a number OID_AUTO, give it a number which
         * is greater than any current oid.  Make sure it is at least
-        * 100 to leave space for pre-assigned oid numbers.
+        * 256 to leave space for pre-assigned oid numbers.
         */
        if (oidp->oid_number == OID_AUTO) {
-               static int newoid = 100;
+               static int newoid = 256;
 
                oidp->oid_number = newoid++;
                if (newoid == 0x7fffffff)

Reply via email to