%any is never on a local interface

This commit is contained in:
Tobias Brunner
2012-09-21 18:16:26 +02:00
parent e9a7779003
commit 645d7a5ef3
2 changed files with 10 additions and 0 deletions
@@ -1009,6 +1009,11 @@ METHOD(kernel_net_t, get_interface_name, bool,
addr_entry_t *addr;
bool found = FALSE;
if (ip->is_anyaddr(ip))
{
return FALSE;
}
this->mutex->lock(this->mutex);
ifaces = this->ifaces->create_enumerator(this->ifaces);
while (ifaces->enumerate(ifaces, &iface))
@@ -480,6 +480,11 @@ METHOD(kernel_net_t, get_interface_name, bool,
addr_entry_t *addr;
bool found = FALSE;
if (ip->is_anyaddr(ip))
{
return FALSE;
}
this->mutex->lock(this->mutex);
ifaces = this->ifaces->create_enumerator(this->ifaces);
while (ifaces->enumerate(ifaces, &iface))