diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-14 14:43:17 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-21 18:16:26 +0200 |
commit | 9513225e6b74ad506eb393a73b98ad604526d54e (patch) | |
tree | 9685b812cbdc6e56bb4da383f1cd3754463329dc /src/libhydra/kernel/kernel_interface.h | |
parent | a2a28d90ac72cd53136801aef0aadf80a049df8d (diff) | |
download | strongswan-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.h | 13 |
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, |