diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-06-07 21:25:37 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-06-07 21:25:37 +0000 |
commit | 87739f251b80651d7bf5e456e0dc04696a638f9b (patch) | |
tree | 8a36dbdfa9d45f950ffcc830260b168b4eb45f94 /sbin/pfctl/pfctl.c | |
parent | 1001fef5168442fee0d557002fbdd7ba550de37a (diff) |
Add "(max <number>)" option for "keep/modulate state" to limit the number
of concurrent connections a rule can create. ok frantzen@
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r-- | sbin/pfctl/pfctl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 81dd612d407..b08b13261c2 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.68 2002/06/06 22:22:44 mickey Exp $ */ +/* $OpenBSD: pfctl.c,v 1.69 2002/06/07 21:25:35 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -410,9 +410,10 @@ pfctl_show_rules(int dev, int opts, int format) default: print_rule(&pr.rule); if (opts & PF_OPT_VERBOSE) - printf("[ Evaluations: %-10llu Packets: %-10llu " - "Bytes: %-10llu ]\n\n", pr.rule.evaluations, - pr.rule.packets, pr.rule.bytes); + printf("[ Evaluations: %-8llu Packets: %-8llu " + "Bytes: %-10llu States: %-6u]\n\n", + pr.rule.evaluations, pr.rule.packets, + pr.rule.bytes, pr.rule.states); } } return (0); |