summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2013-07-05 13:07:59 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2013-07-05 13:07:59 +0000
commit76cbef18617368358bd97db20ff50cb8d212c924 (patch)
treed7e6b6a2e8cd333a749f4b791849d9f2b8a0010e /sys/net/pfvar.h
parent6ef46a309357346a959de1eee7f09d64d74de0f3 (diff)
Collect and display 'match' counters for pf tables.
While here, fix pf table displays to fit within 80 chars. Manpage input jmc@ ok henning@ reyk@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 7284e61b9f0..e74bd05c09f 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.387 2013/07/04 00:19:01 guenther Exp $ */
+/* $OpenBSD: pfvar.h,v 1.388 2013/07/05 13:07:58 blambert Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1053,7 +1053,7 @@ struct pfr_addr {
#define pfra_ip6addr pfra_u._pfra_ip6addr
enum { PFR_DIR_IN, PFR_DIR_OUT, PFR_DIR_MAX };
-enum { PFR_OP_BLOCK, PFR_OP_PASS, PFR_OP_ADDR_MAX, PFR_OP_TABLE_MAX };
+enum { PFR_OP_BLOCK, PFR_OP_MATCH, PFR_OP_PASS, PFR_OP_ADDR_MAX, PFR_OP_TABLE_MAX };
#define PFR_OP_XPASS PFR_OP_ADDR_MAX
struct pfr_astats {
@@ -1848,8 +1848,8 @@ void pf_route6(struct mbuf **, struct pf_rule *, int,
void pfr_initialize(void);
int pfr_match_addr(struct pfr_ktable *, struct pf_addr *, sa_family_t);
-void pfr_update_stats(struct pfr_ktable *, struct pf_addr *, sa_family_t,
- u_int64_t, int, int, int);
+void pfr_update_stats(struct pfr_ktable *, struct pf_addr *,
+ struct pf_pdesc *, int, int);
int pfr_pool_get(struct pf_pool *, struct pf_addr **,
struct pf_addr **, sa_family_t);
int pfr_states_increase(struct pfr_ktable *, struct pf_addr *, int);