aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-11-12 11:14:03 +0100
committerMartin Willi <martin@revosec.ch>2012-11-29 10:22:51 +0100
commitd88597f0dd0df67e4096e917e118998d9066b770 (patch)
treeeac1f3b4dc6dc4f418ad256b44cb7a784d3db558 /src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
parentb185cdd16d1d7553fabf7792928df31ad9eea427 (diff)
downloadstrongswan-d88597f0dd0df67e4096e917e118998d9066b770.tar.bz2
strongswan-d88597f0dd0df67e4096e917e118998d9066b770.tar.xz
Don't wait while removing external IPs used for load testing
Diffstat (limited to 'src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c')
-rw-r--r--src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c b/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
index c00fa8800..23a354dba 100644
--- a/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
+++ b/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
@@ -1758,7 +1758,8 @@ METHOD(kernel_net_t, add_ip, status_t,
}
METHOD(kernel_net_t, del_ip, status_t,
- private_kernel_netlink_net_t *this, host_t *virtual_ip, int prefix)
+ private_kernel_netlink_net_t *this, host_t *virtual_ip, int prefix,
+ bool wait)
{
addr_map_entry_t *entry, lookup = {
.ip = virtual_ip,
@@ -1798,7 +1799,7 @@ METHOD(kernel_net_t, del_ip, status_t,
entry->addr->installed = FALSE;
status = manage_ipaddr(this, RTM_DELADDR, 0, entry->iface->ifindex,
virtual_ip, prefix);
- if (status == SUCCESS)
+ if (status == SUCCESS && wait)
{ /* wait until the address is really gone */
while (is_known_vip(this, virtual_ip))
{