summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-03-10 13:28:00 +0000
committerhenning <henning@openbsd.org>2003-03-10 13:28:00 +0000
commit2bc34f7033f4c5b8356fe7580fb3fd408880b9a3 (patch)
tree9bf0c6a5c8969674c72b8b379613b9093a7898d8
parentwhitespace (diff)
downloadwireguard-openbsd-2bc34f7033f4c5b8356fe7580fb3fd408880b9a3.tar.xz
wireguard-openbsd-2bc34f7033f4c5b8356fe7580fb3fd408880b9a3.zip
it doesn't make sense to mimic pfctl -vsr output in pfctl -vsl (same for
-vvsr ./. -vvsl). this resulted in more or less garbage in pfctl -vsl and -vvsl output. so ignore the extra verbosity flags for -sl. found by pb@ ok pb@ dhartmei@
-rw-r--r--sbin/pfctl/pfctl.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 39a87241b8e..0479529c521 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.158 2003/03/08 14:26:31 henning Exp $ */
+/* $OpenBSD: pfctl.c,v 1.159 2003/03/10 13:28:00 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -569,10 +569,7 @@ pfctl_show_rules(int dev, int opts, int format)
switch (format) {
case 1:
if (pr.rule.label[0]) {
- if (opts & PF_OPT_VERBOSE)
- print_rule(&pr.rule, rule_numbers);
- else
- printf("%s ", pr.rule.label);
+ printf("%s ", pr.rule.label);
printf("%llu %llu %llu\n",
pr.rule.evaluations, pr.rule.packets,
pr.rule.bytes);
@@ -604,10 +601,7 @@ pfctl_show_rules(int dev, int opts, int format)
switch (format) {
case 1:
if (pr.rule.label[0]) {
- if (opts & PF_OPT_VERBOSE)
- print_rule(&pr.rule, rule_numbers);
- else
- printf("%s ", pr.rule.label);
+ printf("%s ", pr.rule.label);
printf("%llu %llu %llu\n",
pr.rule.evaluations, pr.rule.packets,
pr.rule.bytes);