summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-21 21:28:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-21 21:28:07 +0000
commite3b009287413243e91841a2525a03755e8cd7524 (patch)
tree7920228ed3f3c38f0b5fee7798559bd37f7a0788 /sbin
parent15702db563cf3bb27b73add23931b4e5ad1b1e1f (diff)
fix route-to also
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 9f9ed25cdb4..4146393ebf9 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.131 2002/07/21 01:37:46 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.132 2002/07/21 21:28:06 deraadt Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1420,8 +1420,8 @@ route : /* empty */ {
$$.rt = PF_FASTROUTE;
$$.addr = NULL;
}
- | ROUTETO STRING ':' address {
- $$.string = strdup($2);
+ | ROUTETO '(' STRING address ')' {
+ $$.string = strdup($3);
$$.rt = PF_ROUTETO;
if ($4->addr.addr_dyn != NULL) {
yyerror("route-to does not support"