diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-10-12 09:24:49 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-02-08 10:38:28 +0100 |
commit | 324fc2cb522926e8f6c9c0076c7410beb025b3cb (patch) | |
tree | 14b3a70bdb450e4f8c7653b68b4c5f073e2bece7 /src/libcharon/kernel/kernel_net.h | |
parent | 3c46ce283404c6336f36a69a4842ab837db23d66 (diff) | |
download | strongswan-324fc2cb522926e8f6c9c0076c7410beb025b3cb.tar.bz2 strongswan-324fc2cb522926e8f6c9c0076c7410beb025b3cb.tar.xz |
kernel-interface: Add method to enumerate locally attached subnets
Diffstat (limited to 'src/libcharon/kernel/kernel_net.h')
-rw-r--r-- | src/libcharon/kernel/kernel_net.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libcharon/kernel/kernel_net.h b/src/libcharon/kernel/kernel_net.h index 1d78d6edd..a1ced362c 100644 --- a/src/libcharon/kernel/kernel_net.h +++ b/src/libcharon/kernel/kernel_net.h @@ -119,6 +119,15 @@ struct kernel_net_t { kernel_address_type_t which); /** + * Creates an enumerator over all local subnets. + * + * Local subnets are subnets the host is directly connected to. + * + * @return enumerator over host_t*, uint8_t + */ + enumerator_t *(*create_local_subnet_enumerator)(kernel_net_t *this); + + /** * Add a virtual IP to an interface. * * Virtual IPs are attached to an interface. If an IP is added multiple |