diff options
| author | Erik Kline <ek@google.com> | 2015-07-22 03:38:25 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-07-22 13:54:11 -0400 |
| commit | 3985e8a3611a93bb36789f65db862e5700aab65e (patch) | |
| tree | 667800cbbe808601389a59754448cdf237a51ab8 /include | |
| parent | fb02eb4a29303295f2fed8a69d9aa703792c834b (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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ipv6.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/ipv6.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 1319a6bb6b82..06ed637225b8 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
| @@ -57,6 +57,7 @@ struct ipv6_devconf { | |||
| 57 | bool initialized; | 57 | bool initialized; |
| 58 | struct in6_addr secret; | 58 | struct in6_addr secret; |
| 59 | } stable_secret; | 59 | } stable_secret; |
| 60 | __s32 use_oif_addrs_only; | ||
| 60 | void *sysctl; | 61 | void *sysctl; |
| 61 | }; | 62 | }; |
| 62 | 63 | ||
diff --git a/include/uapi/linux/ipv6.h b/include/uapi/linux/ipv6.h index 5efa54ae567c..641a146ead7d 100644 --- a/include/uapi/linux/ipv6.h +++ b/include/uapi/linux/ipv6.h | |||
| @@ -171,6 +171,7 @@ enum { | |||
| 171 | DEVCONF_USE_OPTIMISTIC, | 171 | DEVCONF_USE_OPTIMISTIC, |
| 172 | DEVCONF_ACCEPT_RA_MTU, | 172 | DEVCONF_ACCEPT_RA_MTU, |
| 173 | DEVCONF_STABLE_SECRET, | 173 | DEVCONF_STABLE_SECRET, |
| 174 | DEVCONF_USE_OIF_ADDRS_ONLY, | ||
| 174 | DEVCONF_MAX | 175 | DEVCONF_MAX |
| 175 | }; | 176 | }; |
| 176 | 177 | ||
