aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-07-22 16:38:25 +0900
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:19 +0200
commit2f78e06636061d0b179c6bbf3b50051faec0f7aa (patch)
tree03d4fb5c63f858aafb5029de0f4786977325fa2a /include/linux
parentb814a93adfaebe63094da43ca155a871ed5bfd5d (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> [Simplified back-port of net-next 3985e8a3611a93bb36789f65db862e5700aab65e] Bug: 19470192 Bug: 21832279 Bug: 22464419 Change-Id: Ib74ef945dcabe64215064f15ee1660b6524d65ce
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ipv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index b1199a2cf..94c5f4d5c 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -50,6 +50,7 @@ struct ipv6_devconf {
__s32 accept_dad;
__s32 force_tllao;
__s32 ndisc_notify;
+ __s32 use_oif_addrs_only;
void *sysctl;
};