Use seperate variable to indicate whether ipfw has been loaded or not, so
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 28 Jul 2008 13:45:43 +0000 (13:45 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 28 Jul 2008 13:45:43 +0000 (13:45 +0000)
commit2930a9971d474302845628d59ebef35ece9a5e92
treed4b35446f75ff2cc2bdac0129cd170b089f2a245
parent7b2f19678685d54e908bfc7103dc8f3ca59643be
Use seperate variable to indicate whether ipfw has been loaded or not, so
that following way could be used to protect various ipfw function pointers:
    ip_fw_loaded = 0;
    netmsg_service_sync();
    /* clear all ipfw function pointers */
sys/net/ipfw/ip_fw2.c
sys/net/ipfw/ip_fw2.h
sys/netinet/ip_input.c