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
@@ -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)
@@ -55,6 +56,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.
*