consider interfaces we do not monitor as up (e.g. lo)

fixes load-testing against 127.0.0.1
This commit is contained in:
Martin Willi
2008-11-18 09:52:28 +00:00
parent 50ae86017c
commit 32f59c56f1
@@ -707,7 +707,8 @@ static bool is_interface_up(private_kernel_netlink_net_t *this, int index)
{
enumerator_t *ifaces;
iface_entry_t *iface;
bool up = FALSE;
/* default to TRUE for interface we do not monitor (e.g. lo) */
bool up = TRUE;
ifaces = this->ifaces->create_enumerator(this->ifaces);
while (ifaces->enumerate(ifaces, &iface))