Don't check interface of inbound message if interfaces are not filtered

We don't have a proper kernel-net interface on Android yet, so the check
for a usable interface does not work there.
This commit is contained in:
Tobias Brunner
2012-09-24 17:12:18 +02:00
parent 64595464b2
commit 2e2feffb67
3 changed files with 19 additions and 7 deletions
+8 -1
View File
@@ -312,7 +312,7 @@ struct kernel_interface_t {
* @param name allocated interface name (optional)
* @return TRUE if interface found and usable
*/
bool (*get_interface) (kernel_interface_t *this, host_t *host, char **name);
bool (*get_interface)(kernel_interface_t *this, host_t *host, char **name);
/**
* Creates an enumerator over all local addresses.
@@ -415,6 +415,13 @@ struct kernel_interface_t {
*/
bool (*is_interface_usable)(kernel_interface_t *this, const char *iface);
/**
* Check if interfaces are excluded by config.
*
* @return TRUE if no interfaces are exclued by config
*/
bool (*all_interfaces_usable)(kernel_interface_t *this);
/**
* Tries to find an IP address of a local interface that is included in the
* supplied traffic selector.