.BR charon.plugins.kernel-netlink.roam_events " [yes]"
Whether to trigger roam events when interfaces, addresses or routes change
.TP
+.BR charon.plugins.kernel-pfroute.vip_wait " [1000]"
+Time in ms to wait until virtual IP addresses appear/disappear before failing.
+.TP
.BR charon.plugins.load-tester
Section to configure the load-tester plugin, see LOAD TESTS
.TP
* time of last roam event
*/
timeval_t last_roam;
+
+ /**
+ * Time in ms to wait for IP addresses to appear/disappear
+ */
+ int vip_wait;
};
/**
this->mutex->lock(this->mutex);
while (!timeout && !get_interface_name(this, vip, NULL))
{
- timeout = this->condvar->timed_wait(this->condvar, this->mutex, 1000);
+ timeout = this->condvar->timed_wait(this->condvar, this->mutex,
+ this->vip_wait);
}
this->mutex->unlock(this->mutex);
if (timeout)
this->mutex->lock(this->mutex);
while (!timeout && get_interface_name(this, vip, NULL))
{
- timeout = this->condvar->timed_wait(this->condvar, this->mutex, 1000);
+ timeout = this->condvar->timed_wait(this->condvar, this->mutex,
+ this->vip_wait);
}
this->mutex->unlock(this->mutex);
if (timeout)
.lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
.mutex = mutex_create(MUTEX_TYPE_DEFAULT),
.condvar = condvar_create(CONDVAR_TYPE_DEFAULT),
+ .vip_wait = lib->settings->get_int(lib->settings,
+ "%s.plugins.kernel-pfroute.vip_wait", 1000, hydra->daemon),
);
/* create a PF_ROUTE socket to communicate with the kernel */