diff options
author | Martin Willi <martin@revosec.ch> | 2013-02-21 09:39:23 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-03-01 11:11:24 +0100 |
commit | 76f7d80e80c3217979e92548f7f93cdb96d9f6c5 (patch) | |
tree | 5ab2c971f6f74083bd07bcbf2fa8e7addb9bf728 /src/libhydra/kernel/kernel_net.h | |
parent | d830174e3c5d6fb0978384f43893ca9cfbe4e1e0 (diff) | |
download | strongswan-76f7d80e80c3217979e92548f7f93cdb96d9f6c5.tar.bz2 strongswan-76f7d80e80c3217979e92548f7f93cdb96d9f6c5.tar.xz |
Introduce "features" for the kernel backends returning kernel capabilities
Diffstat (limited to 'src/libhydra/kernel/kernel_net.h')
-rw-r--r-- | src/libhydra/kernel/kernel_net.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libhydra/kernel/kernel_net.h b/src/libhydra/kernel/kernel_net.h index 6a3b2cee7..0d3417f1d 100644 --- a/src/libhydra/kernel/kernel_net.h +++ b/src/libhydra/kernel/kernel_net.h @@ -28,6 +28,7 @@ typedef enum kernel_address_type_t kernel_address_type_t; #include <collections/enumerator.h> #include <networking/host.h> #include <plugins/plugin.h> +#include <kernel/kernel_interface.h> /** * Type of addresses (e.g. when enumerating them) @@ -56,6 +57,13 @@ enum kernel_address_type_t { struct kernel_net_t { /** + * Get the feature set supported by this kernel backend. + * + * @return ORed feature-set of backend + */ + kernel_feature_t (*get_features)(kernel_net_t *this); + + /** * Get our outgoing source address for a destination. * * Does a route lookup to get the source address used to reach dest. |