summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-12-01 19:54:33 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-12-01 19:54:33 +0000
commit2ec2dde444d4a6fdb266bc942ca402d62e1e6b3e (patch)
tree920afeeb45855bd65c251f337c553624b2087bf9 /sys/net/pf.c
parentc1dbff98cb7e276d99efdb35aa0ed8731061e5c0 (diff)
- Clean up pf_ioctl mainly by adding new functions to handle cleaning and
freeing rules. Fixes a number of potential memory leaks and other bugs. - Add new pool_ticket to insure that address pools don't get messed with by someone else while we add rules. - Add a second address pool buffer, so that DIOCCHANGE* operations which use pf_compare* will work correctly. Excellent bug report and anaylsis from DJ Gregor. ok dhartmei@ henning@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index a0a4482bc07..9a7073ed811 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.266 2002/12/01 01:20:02 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.267 2002/12/01 19:54:32 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -271,7 +271,7 @@ struct pf_natqueue pf_nats[2];
struct pf_binatqueue pf_binats[2];
struct pf_rdrqueue pf_rdrs[2];
struct pf_altqqueue pf_altqs[2];
-struct pf_palist pf_pabuf;
+struct pf_palist pf_pabuf[2];
static __inline int
pf_state_compare(struct pf_tree_node *a, struct pf_tree_node *b)