diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-02-08 10:47:33 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-02-08 10:51:33 +0100 |
commit | e9d13476cb8439bd18e4032e5cc6fd595c63326c (patch) | |
tree | 7949bd0fd5a75787b70871508a814113ffdb2aca /src/libcharon/kernel/kernel_net.h | |
parent | 3c46ce283404c6336f36a69a4842ab837db23d66 (diff) | |
parent | 21df4cc1ed97ec8471f1d595ee9a28521c218dce (diff) | |
download | strongswan-e9d13476cb8439bd18e4032e5cc6fd595c63326c.tar.bz2 strongswan-e9d13476cb8439bd18e4032e5cc6fd595c63326c.tar.xz |
Merge branch 'bypass-lan'
Adds a new plugin that automatically installs and updates bypass policies
for locally attached subnets. This is useful for laptops etc. that are
used in different networks and prefer maintaining access to local hosts
(e.g. network printers or NAS) while connected to a VPN.
Diffstat (limited to 'src/libcharon/kernel/kernel_net.h')
-rw-r--r-- | src/libcharon/kernel/kernel_net.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libcharon/kernel/kernel_net.h b/src/libcharon/kernel/kernel_net.h index 1d78d6edd..12475b123 100644 --- a/src/libcharon/kernel/kernel_net.h +++ b/src/libcharon/kernel/kernel_net.h @@ -119,6 +119,17 @@ 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. + * + * The enumerator returns the network, subnet mask and interface. + * + * @return enumerator over host_t*, uint8_t, char* + */ + 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 |