summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2001-07-17 17:39:43 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2001-07-17 17:39:43 +0000
commit37685edb4b504da183e14f661d42638737f60eb5 (patch)
treee3f1e10e5247aee563cd2564048adc5d5a482005 /sbin
parent05cbe654125913961f0cf82f81af167167571928 (diff)
bitch about ! in pf rule; ok dhartmei@ and markus@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 13a7298d22b..b8e8a489bab 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.4 2001/07/17 16:07:47 millert Exp $ */
+/* $OpenBSD: parse.y,v 1.5 2001/07/17 17:39:42 marc Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -184,7 +184,11 @@ quick: { $$ = 0; }
iface: { $$.string = NULL; }
| ON STRING { $$.string = strdup($2); }
- | ON '!' STRING { $$.string = strdup($3); $$.not = 1;}
+ | ON '!' STRING {
+ if (! natmode)
+ yyerror("can't '!' interface in pf rule");
+ $$.string = strdup($3); $$.not = 1;
+ }
;
proto: { $$ = proto; }