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.
Showing the changes to include (2 of 4 files). Show all
Unified · Split
| @@ -57,6 +57,7 @@ struct ipv6_devconf { · 56 unmodified lines | |||
| 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 | ||
| @@ -171,6 +171,7 @@ enum { · 170 unmodified lines | |||
| 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 | ||