History

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.

Erik Kline committed 11 years ago

Commit 3985e8a1 parent fb02eb44 files · +28 −3Browse files

Showing the changes to include (2 of 4 files). Show all

Unified · Split

2 files
  1. include/linux/ipv6.h +1 −0
  2. include/uapi/linux/ipv6.h +1 −0
include/linux/ipv6.h+1−0
@@ -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
include/uapi/linux/ipv6.h+1−0
@@ -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_MAX175 DEVCONF_MAX
175};176};
176 177