improved MOBIKE roaming between interfaces

This commit is contained in:
Martin Willi
2007-09-24 12:15:25 +00:00
parent e5f1ead26f
commit d9d69536b0
5 changed files with 31 additions and 20 deletions
+10
View File
@@ -832,6 +832,16 @@ static status_t update_hosts(private_child_sa_t *this,
{
policy->other_ts->set_address(policy->other_ts, other);
}
/* we reinstall the virtual IP to handle interface romaing
* correctly */
if (this->virtual_ip)
{
charon->kernel_interface->del_ip(charon->kernel_interface,
this->virtual_ip);
charon->kernel_interface->add_ip(charon->kernel_interface,
this->virtual_ip, me);
}
/* reinstall updated policies */
charon->kernel_interface->add_policy(charon->kernel_interface,