Added options and a lookup function that will allow filtering of network interfaces

This commit is contained in:
Tobias Brunner
2012-09-21 18:16:26 +02:00
parent a2a28d90ac
commit 9513225e6b
4 changed files with 81 additions and 4 deletions
+11 -2
View File
@@ -406,11 +406,20 @@ struct kernel_interface_t {
*/
/**
* Tries to find an ip address of a local interface that is included in the
* Verifies that the given interface is usable and not excluded by
* configuration.
*
* @param iface interface name
* @return TRUE if usable
*/
bool (*is_interface_usable)(kernel_interface_t *this, const char *iface);
/**
* Tries to find an IP address of a local interface that is included in the
* supplied traffic selector.
*
* @param ts traffic selector
* @param ip returned ip (has to be destroyed)
* @param ip returned IP address (has to be destroyed)
* @return SUCCESS if address found
*/
status_t (*get_address_by_ts)(kernel_interface_t *this,