ifmap plugin subscribes to assing_vip bus signal

This commit is contained in:
Andreas Steffen
2013-04-06 11:09:41 +02:00
parent 5cb4f5519b
commit ba2880d569
7 changed files with 135 additions and 2 deletions
+6
View File
@@ -766,6 +766,7 @@ METHOD(ike_sa_t, add_virtual_ip, void,
else
{
this->other_vips->insert_last(this->other_vips, ip->clone(ip));
charon->bus->assign_vip(charon->bus, &this->public, ip, TRUE);
}
}
@@ -783,6 +784,10 @@ METHOD(ike_sa_t, clear_virtual_ips, void,
hydra->kernel_interface->del_ip(hydra->kernel_interface,
vip, -1, TRUE);
}
else
{
charon->bus->assign_vip(charon->bus, &this->public, vip, FALSE);
}
vip->destroy(vip);
}
}
@@ -2119,6 +2124,7 @@ METHOD(ike_sa_t, destroy, void,
hydra->attributes->release_address(hydra->attributes, pools, vip, id);
pools->destroy(pools);
}
charon->bus->assign_vip(charon->bus, &this->public, vip, FALSE);
vip->destroy(vip);
}
this->other_vips->destroy(this->other_vips);