Fix the OID_AUTO collision with static sysctl numbers. This can occur
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Nov 2003 22:15:22 +0000 (22:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Nov 2003 22:15:22 +0000 (22:15 +0000)
commit1e32b918d488db10bef8e64c487ddf9860052412
tree1265935a462e4f23811f68e9a441523a71b0ba06
parent3574682136c753ddbfdc625d7a6dafbde5c16f08
Fix the OID_AUTO collision with static sysctl numbers.  This can occur
when things like DIVERT are turned on, because they use static oid's
larger then 100.  Change the minimum OID_AUTO oid from 100 to 256 (taken
from FreeBSD-5.x), and add the assignment scan code from FreeBSD-4.x
rather then using a static variable.
sys/kern/kern_sysctl.c