Introduce "features" for the kernel backends returning kernel capabilities

This commit is contained in:
Martin Willi
2013-03-01 11:11:24 +01:00
parent d830174e3c
commit 76f7d80e80
4 changed files with 52 additions and 1 deletions
+8
View File
@@ -30,6 +30,7 @@ typedef struct kernel_ipsec_t kernel_ipsec_t;
#include <ipsec/ipsec_types.h>
#include <selectors/traffic_selector.h>
#include <plugins/plugin.h>
#include <kernel/kernel_interface.h>
/**
* Interface to the ipsec subsystem of the kernel.
@@ -44,6 +45,13 @@ typedef struct kernel_ipsec_t kernel_ipsec_t;
*/
struct kernel_ipsec_t {
/**
* Get the feature set supported by this kernel backend.
*
* @return ORed feature-set of backend
*/
kernel_feature_t (*get_features)(kernel_ipsec_t *this);
/**
* Get a SPI from the kernel.
*