summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r--sbin/pfctl/pfctl_parser.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index e631fc9b196..c75c4657050 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.12 2001/06/26 18:18:58 kjell Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.13 2001/06/26 19:43:15 dhartmei Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -397,8 +397,10 @@ print_rule(struct pf_rule *r)
printf("in ");
else
printf("out ");
- if (r->log)
+ if (r->log == 1)
printf("log ");
+ else if (r->log == 2)
+ printf("log-all ");
if (r->quick)
printf("quick ");
if (r->ifname[0])
@@ -625,6 +627,9 @@ parse_rule(int n, char *l, struct pf_rule *r)
if (!strcmp(w, "log")) {
r->log = 1;
w = next_word(&l);
+ } else if (!strcmp(w, "log-all")) {
+ r->log = 2;
+ w = next_word(&l);
}
/* quick */