summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2003-06-21 09:07:02 +0000
committerDamien Miller <djm@cvs.openbsd.org>2003-06-21 09:07:02 +0000
commit254e79c998b297ccae33efa965dd18d33c468f4b (patch)
treeb94639419d9442cfbf9ec288e11947f3c82da7ca /sbin/pfctl
parent130157255f5676b7ae00e81c69c434ee5da1dfa4 (diff)
count packets and bidirectionally on state entries, allowing for fine-grained
traffic reporting w/ pfsync; ok dhartmei@ Note: ABI change (new fields in struct pf_state), requires a rebuild of pfctl and tcpdump.
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pf_print_state.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index a61bc422213..74060871211 100644
--- a/sbin/pfctl/pf_print_state.c
+++ b/sbin/pfctl/pf_print_state.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_print_state.c,v 1.30 2003/06/20 16:53:48 deraadt Exp $ */
+/* $OpenBSD: pf_print_state.c,v 1.31 2003/06/21 09:07:01 djm Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -250,7 +250,8 @@ print_state(struct pf_state *s, int opts)
min = s->expire % 60;
s->expire /= 60;
printf(", expires in %.2u:%.2u:%.2u", s->expire, min, sec);
- printf(", %u pkts, %u bytes", s->packets, s->bytes);
+ printf(", %u:%u pkts, %u:%u bytes",
+ s->packets[0], s->packets[1], s->bytes[0], s->bytes[1]);
if (s->anchor.nr != -1)
printf(", anchor %u", s->anchor.nr);
if (s->rule.nr != -1)