ipv6: sysctl to restrict candidate source addresses

Per RFC 6724, section 4, "Candidate Source Addresses":

    It is RECOMMENDED that the candidate source addresses be the set
    of unicast addresses assigned to the interface that will be used
    to send to the destination (the "outgoing" interface).

Add a sysctl to enable this behaviour.

Signed-off-by: Erik Kline <ek@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Erik Kline
2015-07-22 16:38:25 +09:00
committed by David S. Miller
parent fb02eb4a29
commit 3985e8a361
4 changed files with 28 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ struct ipv6_devconf {
bool initialized;
struct in6_addr secret;
} stable_secret;
__s32 use_oif_addrs_only;
void *sysctl;
};