summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2011-07-29 10:51:47 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2011-07-29 10:51:47 +0000
commita734373c14dbc894b570a9287f78efcc8a59897d (patch)
tree215bfa03f712e2212209bc0e2b2be2f785ae18e9 /sbin
parentee3a3ab84d75d2af69dd9ee5638ca2cdd3622812 (diff)
Remove requirement to quote 'debug' loglevel for the 'debug' option.
ok henning
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 11ffd536617..7d75c6b6708 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.606 2011/07/27 00:26:10 mcbride Exp $ */
+/* $OpenBSD: parse.y,v 1.607 2011/07/29 10:51:46 mcbride Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -654,6 +654,12 @@ option : SET REASSEMBLE yesno optnodf {
}
free($3);
}
+ | SET DEBUG DEBUG {
+ if (pfctl_set_debug(pf, "debug") != 0) {
+ yyerror("error setting debuglevel debug");
+ YYERROR;
+ }
+ }
| SET SKIP interface {
if (expand_skip_interface($3) != 0) {
yyerror("error setting skip interface(s)");