summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y4
-rw-r--r--sbin/pfctl/pfctl_parser.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index ea52bfebe24..9d1073edd02 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.616 2012/07/09 14:05:35 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.617 2012/07/10 09:13:41 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2386,7 +2386,7 @@ filter_opt : USER uids {
| filter_sets
;
-filter_sets : SET '{' filter_sets_l '}' { $$ = filter_opts; }
+filter_sets : SET '(' filter_sets_l ')' { $$ = filter_opts; }
| SET filter_set { $$ = filter_opts; }
;
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 5b0533b3b34..3e81fd96166 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.286 2012/07/09 14:05:35 henning Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.287 2012/07/10 09:13:41 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -846,7 +846,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int opts)
if (r->set_prio[0] != PF_PRIO_NOTSET ||
r->scrub_flags & PFSTATE_SETTOS) {
char *comma = "";
- printf(" set {");
+ printf(" set (");
if (r->set_prio[0] != PF_PRIO_NOTSET) {
if (r->set_prio[0] == r->set_prio[1])
printf("%s prio %u", comma, r->set_prio[0]);
@@ -859,7 +859,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int opts)
printf("%s tos 0x%2.2x", comma, r->set_tos);
comma = ",";
}
- printf(" }");
+ printf(" )");
}
ropts = 0;