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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user