summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/ipsecctl/parse.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index acd3e68e4e8..cef3c212032 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.37 2005/11/12 17:04:32 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.38 2005/11/12 17:22:23 deraadt Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -342,7 +342,11 @@ hosts : FROM host TO host {
$$.src = $2;
$$.dst = $4;
}
- ;
+ | TO host FROM host {
+ $$.src = $4;
+ $$.dst = $2;
+ }
+ ;
peer : /* empty */ { $$ = NULL; }
| PEER STRING {