diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 17:22:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 17:22:24 +0000 |
commit | 9af22e0b9e83efc8f22194d9725180fe8abfdbf1 (patch) | |
tree | 4bc23c51fe16a730c307d690e0b2eebc44e29432 /sbin/ipsecctl | |
parent | ce0b180da87598e5d3f1349fcde200eee8e33551 (diff) |
permit TO/FROM to be swapped (symmetry is good); ok hshoexermk
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/parse.y | 8 |
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 { |