aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/tasks
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-09-24 12:15:25 +0000
committerMartin Willi <martin@strongswan.org>2007-09-24 12:15:25 +0000
commitd9d69536b0ecdb298cc40acf81d42c1a09e69a05 (patch)
treebaef0652a1f32ba9c254967d54ff0c7bf62914aa /src/charon/sa/tasks
parente5f1ead26f4b03167e9fe6dff96b3b270298c653 (diff)
downloadstrongswan-d9d69536b0ecdb298cc40acf81d42c1a09e69a05.tar.bz2
strongswan-d9d69536b0ecdb298cc40acf81d42c1a09e69a05.tar.xz
improved MOBIKE roaming between interfaces
Diffstat (limited to 'src/charon/sa/tasks')
-rw-r--r--src/charon/sa/tasks/ike_mobike.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/charon/sa/tasks/ike_mobike.c b/src/charon/sa/tasks/ike_mobike.c
index aee75fbdb..a32f7e5e0 100644
--- a/src/charon/sa/tasks/ike_mobike.c
+++ b/src/charon/sa/tasks/ike_mobike.c
@@ -217,17 +217,6 @@ static void update_children(private_ike_mobike_t *this)
{
iterator_t *iterator;
child_sa_t *child_sa;
- host_t *ip;
-
- /* additionally, we reinstall the virtual IP as we may have changed
- * our interface */
- ip = this->ike_sa->get_virtual_ip(this->ike_sa, TRUE);
- if (ip)
- {
- ip = ip->clone(ip);
- this->ike_sa->set_virtual_ip(this->ike_sa, TRUE, ip);
- ip->destroy(ip);
- }
iterator = this->ike_sa->create_child_sa_iterator(this->ike_sa);
while (iterator->iterate(iterator, (void**)&child_sa))
@@ -279,6 +268,7 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet)
other = other->clone(other);
other->set_port(other, other->ip_equals(other, other_old) ?
other_old->get_port(other_old) : IKEV2_NATT_PORT);
+ DBG1(DBG_IKE, "checking path %#H - %#H", me, other);
copy = packet->clone(packet);
copy->set_source(copy, me);
copy->set_destination(copy, other);
@@ -286,6 +276,9 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet)
}
}
iterator->destroy(iterator);
+ me = packet->get_source(packet);
+ other = packet->get_destination(packet);
+ DBG1(DBG_IKE, "checking path %#H - %#H", me, other);
}
/**