kernel - Allow rn_inithead() to be called early
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Feb 2011 04:44:03 +0000 (20:44 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 Feb 2011 04:44:03 +0000 (20:44 -0800)
commit70cef9220587a199966d07b50255ede53ef64f1e
tree213549bec6657c2cd05e98f3fa13d80301938c2e
parent5347900e6ceaef22d5019eba17baa2a333deb585
kernel - Allow rn_inithead() to be called early

* Allow rn_inithead() to be called earlier than rn_init().  rn_init() is
  called very late and was responsible for creating the all-ones and
  all-zeros keys.  It also required the proto domains to be initialized(?).

* A PF module preload was calling rn_inithead() before the all-ones and
  all-zeros keys could be allocated, resulting in a crash.
sys/net/radix.c
sys/net/radix.h