diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-08-30 00:43:58 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-08-30 00:43:58 +0000 |
commit | bfafb1ec13d3b6c20e058c24a663179deb1ef57e (patch) | |
tree | f639254009e4cc4f21898436bdab9ae2bda13f32 /sbin/pfctl/pfctl_parser.c | |
parent | c6f0fd71946668a4b83671d6b2022ca8b32c2228 (diff) |
One shot rules can be used in pf.conf by specifying a "once" filter option.
ok henning, mcbride
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 4ad8c50e9e9..10dc9c94f5e 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.279 2011/07/27 00:26:10 mcbride Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.280 2011/08/30 00:43:57 mikeb Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1019,6 +1019,8 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose) printf(" allow-opts"); if (r->label[0]) printf(" label \"%s\"", r->label); + if (r->rule_flag & PFRULE_ONCE) + printf(" once"); if (r->qname[0] && r->pqname[0]) printf(" queue(%s, %s)", r->qname, r->pqname); else if (r->qname[0]) |