aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/kernel/kernel_interface.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-14 14:43:17 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-21 18:16:26 +0200
commit9513225e6b74ad506eb393a73b98ad604526d54e (patch)
tree9685b812cbdc6e56bb4da383f1cd3754463329dc /src/libhydra/kernel/kernel_interface.h
parenta2a28d90ac72cd53136801aef0aadf80a049df8d (diff)
downloadstrongswan-9513225e6b74ad506eb393a73b98ad604526d54e.tar.bz2
strongswan-9513225e6b74ad506eb393a73b98ad604526d54e.tar.xz
Added options and a lookup function that will allow filtering of network interfaces
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r--src/libhydra/kernel/kernel_interface.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h
index 338cf39af..72af397c8 100644
--- a/src/libhydra/kernel/kernel_interface.h
+++ b/src/libhydra/kernel/kernel_interface.h
@@ -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,