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
5757 bool initialized;
5858 struct in6_addr secret;
5959 } stable_secret;
60+ __s32 use_oif_addrs_only;
6061 void *sysctl;
6162 };
6263
include/uapi/linux/ipv6.h+1−0
@@ -171,6 +171,7 @@ enum { · 170 unmodified lines
171171 DEVCONF_USE_OPTIMISTIC,
172172 DEVCONF_ACCEPT_RA_MTU,
173173 DEVCONF_STABLE_SECRET,
174+ DEVCONF_USE_OIF_ADDRS_ONLY,
174175 DEVCONF_MAX
175176 };
176177