summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-16 11:06:30 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-16 11:06:30 +0000
commitbf1d63fc616b975902da656f50daa59075203bb0 (patch)
tree1a8e0f8d9c0e278ca88b97047b91ac6750a506f2 /sys/netinet/ip_fw2.c
parent6fc1cf03480aa00f98c4aecbcd23ca5822e79193 (diff)
downloadFreeBSD-src-bf1d63fc616b975902da656f50daa59075203bb0.zip
FreeBSD-src-bf1d63fc616b975902da656f50daa59075203bb0.tar.gz
ipfw doesn't use the radix node head lock to protect the radix tree - remove acquisition
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index eae49c8..1f2e67d 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -1827,9 +1827,7 @@ add_table_entry(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr,
ent->mask.sin_addr.s_addr = htonl(mlen ? ~((1 << (32 - mlen)) - 1) : 0);
ent->addr.sin_addr.s_addr = addr & ent->mask.sin_addr.s_addr;
IPFW_WLOCK(ch);
- RADIX_NODE_HEAD_LOCK(rnh);
rn = rnh->rnh_addaddr(&ent->addr, &ent->mask, rnh, (void *)ent);
- RADIX_NODE_HEAD_UNLOCK(rnh);
if (rn == NULL) {
IPFW_WUNLOCK(ch);
free(ent, M_IPFW_TBL);
OpenPOWER on IntegriCloud