aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-09-17 22:06:47 +0000
committerSam Leffler <sam@FreeBSD.org>2003-09-17 22:06:47 +0000
commit598345da4bf68e8776c4fd8d7b2a061993dcb4fd (patch)
treefc10b4bebb4efcdec7f53569c63d2dc60ab44609
parentf34f3a70977c267bfe6da187965bc4fa3df94e57 (diff)
Notes
-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 cf314be74eb49..0d3da1b01c086 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -111,7 +111,8 @@ struct ip_fw_chain {
struct mtx mtx; /* lock guarding rule list */
};
#define IPFW_LOCK_INIT(_chain) \
- mtx_init(&(_chain)->mtx, "IPFW static rules", NULL, MTX_DEF)
+ mtx_init(&(_chain)->mtx, "IPFW static rules", NULL, \
+ MTX_DEF | MTX_RECURSE)
#define IPFW_LOCK_DESTROY(_chain) mtx_destroy(&(_chain)->mtx)
#define IPFW_LOCK(_chain) mtx_lock(&(_chain)->mtx)
#define IPFW_UNLOCK(_chain) mtx_unlock(&(_chain)->mtx)