summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2009-04-26 22:06:42 +0000
committerzec <zec@FreeBSD.org>2009-04-26 22:06:42 +0000
commit8d976eab5c2cbc080800be588a8572ebec4a7795 (patch)
tree1c2ccb403d29ceb85ca7992b6b96623f561c79db /sys/netinet/ip_fw2.c
parent1e44d091e1be67e4c879788035a2a9161eace942 (diff)
downloadFreeBSD-src-8d976eab5c2cbc080800be588a8572ebec4a7795.zip
FreeBSD-src-8d976eab5c2cbc080800be588a8572ebec4a7795.tar.gz
In preparation for turning on options VIMAGE in next commits,
rearrange / replace / adjust several INIT_VNET_* initializer macros, all of which currently resolve to whitespace. Reviewed by: bz (an older version of the patch) Approved by: julian (mentor)
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index dd643df..7873468 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -1818,7 +1818,6 @@ static int
add_table_entry(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr,
uint8_t mlen, uint32_t value)
{
- INIT_VNET_IPFW(curvnet);
struct radix_node_head *rnh;
struct table_entry *ent;
struct radix_node *rn;
@@ -4535,6 +4534,7 @@ struct ip_fw *ip_fw_default_rule;
static void
ipfw_tick(void * __unused unused)
{
+ INIT_VNET_IPFW(curvnet);
struct mbuf *m0, *m, *mnext, **mtailp;
int i;
ipfw_dyn_rule *q;
@@ -4718,6 +4718,7 @@ ipfw_init(void)
void
ipfw_destroy(void)
{
+ INIT_VNET_IPFW(curvnet);
struct ip_fw *reap;
ip_fw_chk_ptr = NULL;
OpenPOWER on IntegriCloud