do not use a route if outgoing interface is down

other cleanups
This commit is contained in:
Martin Willi
2008-11-14 13:04:22 +00:00
parent a65e1c5c3a
commit fb6c8591a3
2 changed files with 82 additions and 55 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ static status_t get_address_by_ts(private_kernel_interface_t *this,
}
host->destroy(host);
addrs = this->public.create_address_enumerator(&this->public, TRUE, TRUE);
addrs = create_address_enumerator(this, TRUE, TRUE);
while (addrs->enumerate(addrs, (void**)&host))
{
if (ts->includes(ts, host))