ipv6: sysctl to restrict candidate source addresses
authorErik Kline <ek@google.com>
Wed, 22 Jul 2015 07:38:25 +0000 (16:38 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 17:54:11 +0000 (10:54 -0700)
commit3985e8a3611a93bb36789f65db862e5700aab65e
tree667800cbbe808601389a59754448cdf237a51ab8
parentfb02eb4a29303295f2fed8a69d9aa703792c834b
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>
Documentation/networking/ip-sysctl.txt
include/linux/ipv6.h
include/uapi/linux/ipv6.h
net/ipv6/addrconf.c