]> git.ipfire.org Git - people/jschlag/network.git/commit
Add new function ip_get__assigned_addresses_from_net()
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 28 Feb 2018 16:31:27 +0000 (16:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Mar 2018 14:51:31 +0000 (14:51 +0000)
commit1ad09828e16a559468c1e9f7491c7bd795df7e88
treecc29e4587f7c14cfda2511414de750c408bf32c9
parent905b13b37cfd96011d12617cc3b55b11b2a76a55
Add new function ip_get__assigned_addresses_from_net()

This function is neede by IPsec to set the routes correctly.
We can now now find a source IP for a given net.
This way is ugly because the source IP
is unpredictable if we get multiple IPs.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ip