diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-08-23 20:22:30 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-08-23 20:22:30 +0000 |
commit | 0b5d496ea2fd532dcf5e5b6b804a7db32f488364 (patch) | |
tree | a0a47d9ae70ef4e1b364cac4b9d4d9c84986bd63 /programs/pluto/connections.c | |
parent | 360796fdebe9389dbf74cc93775e71fc57cb8907 (diff) | |
download | vyos-strongswan-0b5d496ea2fd532dcf5e5b6b804a7db32f488364.tar.gz vyos-strongswan-0b5d496ea2fd532dcf5e5b6b804a7db32f488364.zip |
Load /tmp/tmp.beAMfG4063/strongswan-2.7.3 into
branches/source-dist/debian/strongswan.
Diffstat (limited to 'programs/pluto/connections.c')
-rw-r--r-- | programs/pluto/connections.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/programs/pluto/connections.c b/programs/pluto/connections.c index 6cf6a6a8b..8bd3ed49b 100644 --- a/programs/pluto/connections.c +++ b/programs/pluto/connections.c @@ -11,7 +11,7 @@ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * - * RCSID $Id: connections.c,v 1.43 2006/04/29 18:16:02 as Exp $ + * RCSID $Id: connections.c,v 1.44 2006/07/06 19:20:09 as Exp $ */ #include <string.h> @@ -116,7 +116,8 @@ find_host_pair(const ip_address *myaddr, u_int16_t myport hisaddr = aftoinfo(addrtypeof(myaddr))->any; #ifdef NAT_TRAVERSAL - if (nat_traversal_enabled) { + if (nat_traversal_enabled) + { /** * port is not relevant in host_pair. with nat_traversal we * always use pluto_port (500) @@ -151,9 +152,11 @@ find_host_pair_connections(const ip_address *myaddr, u_int16_t myport struct host_pair *hp = find_host_pair(myaddr, myport, hisaddr, hisport); #ifdef NAT_TRAVERSAL - if (nat_traversal_enabled && hp && hisaddr) { + if (nat_traversal_enabled && hp && hisaddr) + { struct connection *c; - for (c = hp->connections; c != NULL; c = c->hp_next) { + for (c = hp->connections; c != NULL; c = c->hp_next) + { if ((c->spd.this.host_port==myport) && (c->spd.that.host_port==hisport)) return c; } |