consider interfaces we do not monitor as up (e.g. lo)
authorMartin Willi <martin@strongswan.org>
Tue, 18 Nov 2008 09:52:28 +0000 (09:52 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 18 Nov 2008 09:52:28 +0000 (09:52 -0000)
fixes load-testing against 127.0.0.1

src/charon/plugins/kernel_netlink/kernel_netlink_net.c

index 40036e1..d8b05e1 100644 (file)
@@ -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))