diff options
author | ru <ru@FreeBSD.org> | 2004-06-10 20:20:37 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-06-10 20:20:37 +0000 |
commit | 30a30620eea7f0af192d7e3c5dbf11e77ae4a6cc (patch) | |
tree | 533524bd3c35d35e2269db7656b53a10c6e31ad4 | |
parent | e7e9a07321d8738b7020fa67d92a8a138632acb7 (diff) | |
download | FreeBSD-src-30a30620eea7f0af192d7e3c5dbf11e77ae4a6cc.zip FreeBSD-src-30a30620eea7f0af192d7e3c5dbf11e77ae4a6cc.tar.gz |
init_tables() must be run after sys/net/route.c:route_init().
-rw-r--r-- | sys/netinet/ip_fw2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index a62bab4..05b26ac 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -3294,7 +3294,6 @@ ipfw_init(void) layer3_chain.rules = NULL; IPFW_LOCK_INIT(&layer3_chain); IPFW_DYN_LOCK_INIT(); - init_tables(); callout_init(&ipfw_timeout, debug_mpsafenet ? CALLOUT_MPSAFE : 0); bzero(&default_rule, sizeof default_rule); @@ -3404,4 +3403,8 @@ static moduledata_t ipfwmod = { }; DECLARE_MODULE(ipfw, ipfwmod, SI_SUB_PSEUDO, SI_ORDER_ANY); MODULE_VERSION(ipfw, 1); + +/* Must be run after route_init(). */ +SYSINIT(ipfw, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY, init_tables, 0) + #endif /* IPFW2 */ |