diff options
author | Martin Willi <martin@strongswan.org> | 2008-10-08 08:23:46 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-10-08 08:23:46 +0000 |
commit | ce5b17082d1f7d03653f068bc81e9f68e8f738e6 (patch) | |
tree | 188f3f0ce6d0573c2d5eef02e8cc4c6c3518a764 /src/charon/sa/tasks/ike_mobike.c | |
parent | e39b271b1791d852b38632a5e9e36911a1f55883 (diff) | |
download | strongswan-ce5b17082d1f7d03653f068bc81e9f68e8f738e6.tar.bz2 strongswan-ce5b17082d1f7d03653f068bc81e9f68e8f738e6.tar.xz |
mobike: try to keep existing source address before switching to another
Diffstat (limited to 'src/charon/sa/tasks/ike_mobike.c')
-rw-r--r-- | src/charon/sa/tasks/ike_mobike.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/sa/tasks/ike_mobike.c b/src/charon/sa/tasks/ike_mobike.c index 450149f1c..a5fe74afd 100644 --- a/src/charon/sa/tasks/ike_mobike.c +++ b/src/charon/sa/tasks/ike_mobike.c @@ -277,7 +277,7 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet) other_old = this->ike_sa->get_other_host(this->ike_sa); me = charon->kernel_interface->get_source_addr( - charon->kernel_interface, other_old); + charon->kernel_interface, other_old, NULL); if (me) { me->set_port(me, me->ip_equals(me, me_old) ? @@ -289,7 +289,7 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet) while (iterator->iterate(iterator, (void**)&other)) { me = charon->kernel_interface->get_source_addr( - charon->kernel_interface, other); + charon->kernel_interface, other, NULL); if (me) { if (me->get_family(me) != other->get_family(other)) |