diff options
author | Erik Kline <ek@google.com> | 2015-07-22 16:38:25 +0900 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-11-19 12:36:45 -0800 |
commit | 5aa1fd08648df1bc3f6f770a0cf6222a6c354266 (patch) | |
tree | 60ff0b9aeaf7e693c49d5337cab38bdcdc754c5b /include/linux | |
parent | 4494f8638bbc3608581aed52bd153c0856745506 (diff) |
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>
(cherry picked from commit 3985e8a3611a93bb36789f65db862e5700aab65e)
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ipv6.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index c1c225052377..2343532439ee 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -58,6 +58,7 @@ struct ipv6_devconf { bool initialized; struct in6_addr secret; } stable_secret; + __s32 use_oif_addrs_only; void *sysctl; }; |