diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-01 16:09:30 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-01 16:09:30 +0000 |
commit | 77851a167cfd9f734e26ab52a92f2413c7ff7fb7 (patch) | |
tree | c24cfed7cc5f295d036949750551caf4dd32c33c | |
parent | a73198e248c7ed11e9ec8f138f54123c75bb81bc (diff) |
use a #define for the default state table size
-rw-r--r-- | sys/net/pf.c | 4 | ||||
-rw-r--r-- | sys/net/pfvar.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index c71f3b73e42..338cb22f1cc 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.292 2003/01/01 04:26:19 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.293 2003/01/01 16:09:29 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -233,7 +233,7 @@ int pf_socket_lookup(uid_t *, gid_t *, int, sa_family_t, int, struct pf_pdesc *); struct pf_pool_limit pf_pool_limits[PF_LIMIT_MAX] = - { { &pf_state_pl, 10000 }, { &pf_frent_pl, PFFRAG_FRENT_HIWAT } }; + { { &pf_state_pl, PFSTATE_HIWAT }, { &pf_frent_pl, PFFRAG_FRENT_HIWAT } }; #define STATE_TRANSLATE(s) \ (s)->lan.addr.addr32[0] != (s)->gwy.addr.addr32[0] || \ diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index dc0034d5694..9b3ea69e7cb 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.122 2003/01/01 14:16:56 cedric Exp $ */ +/* $OpenBSD: pfvar.h,v 1.123 2003/01/01 16:09:29 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -361,6 +361,8 @@ struct pf_rule { #define PFRULE_FRAGDROP 0x20 /* drop funny fragments */ #define PFRULE_RETURN 0x40 +#define PFSTATE_HIWAT 10000 /* default state table size */ + struct pf_state_host { struct pf_addr addr; u_int16_t port; |