kernel-netlink: Follow RFC 6724 when selecting IPv6 source addresses

Instead of using the first address we find on an interface we should
consider properties like an address' scope or whether it is temporary
or public.

Fixes #543.
This commit is contained in:
Tobias Brunner
2014-06-19 14:16:41 +02:00
parent 6364219281
commit 3bf98189d7
2 changed files with 175 additions and 27 deletions
+4
View File
@@ -211,6 +211,10 @@ charon.port_nat_t = 4500
allocated. Has to be different from **charon.port**, otherwise a random
port will be allocated.
charon.prefer_temporary_addrs = no
By default public IPv6 addresses are preferred over temporary ones (RFC
4941), to make connections more stable. Enable this option to reverse this.
charon.process_route = yes
Process RTM_NEWROUTE and RTM_DELROUTE events.