diff options
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r-- | src/libhydra/kernel/kernel_interface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h index c09f07bd9..88d4a5bce 100644 --- a/src/libhydra/kernel/kernel_interface.h +++ b/src/libhydra/kernel/kernel_interface.h @@ -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. @@ -416,6 +416,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. * |