diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-06-26 19:43:16 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-06-26 19:43:16 +0000 |
commit | 04a10fb53b830b8e86bd8650451872831c55f4eb (patch) | |
tree | 82f644f128d2feb25163d86623994b9cc5e9994a /sbin/pfctl | |
parent | b82e290e218f6249a5b2aeae788ef47d965edb1b (diff) |
add rule pointer and log option to states
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 9 |
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 */ |