summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-02-04 10:43:19 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-02-04 10:43:19 +0000
commit6b28b17d585d454ea87dd8758d18e8ff12486e1f (patch)
tree9d5a6600d3c003db33caa54d5c799aff2b52c332 /sys/net/pf.c
parentd7cebb809ee429657848bef3a4a3e97b023bec60 (diff)
Fix a number of bugs with setting pool limits which I introduced with
source-tracking. Found by Pyun YongHyeon. Also add support to pfctl to set the src-nodes pool limit. "Luckily" some of the bugs cancel each other out; update kernel before pfctl. ok dhartmei@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index f9f72176d3c..28134b25f30 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.420 2004/02/02 12:47:50 cedric Exp $ */
+/* $OpenBSD: pf.c,v 1.421 2004/02/04 10:43:18 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -207,8 +207,11 @@ static int pf_add_mbuf_tag(struct mbuf *, u_int);
struct pf_state *pf_find_state_recurse(struct pfi_kif *,
struct pf_state *, u_int8_t);
-struct pf_pool_limit pf_pool_limits[PF_LIMIT_MAX] =
- { { &pf_state_pl, PFSTATE_HIWAT }, { &pf_frent_pl, PFFRAG_FRENT_HIWAT } };
+struct pf_pool_limit pf_pool_limits[PF_LIMIT_MAX] = {
+ { &pf_state_pl, PFSTATE_HIWAT },
+ { &pf_src_tree_pl, PFSNODE_HIWAT },
+ { &pf_frent_pl, PFFRAG_FRENT_HIWAT }
+};
#define STATE_LOOKUP() \
do { \