[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAedzxqC3jeezcSnmM+PYJYT+oVFr6kZ1mX_xBFmMrsGFTH6VQ@mail.gmail.com>
Date: Mon, 6 Jul 2015 12:06:33 +0900
From: Erik Kline <ek@...gle.com>
To: YOSHIFUJI Hideaki <hideaki.yoshifuji@...aclelinux.com>
Cc: Hannes Frederic Sowa <hannes@...essinduktion.org>,
Lorenzo Colitti <lorenzo@...gle.com>,
netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH net-next] ipv6: sysctl to restrict candidate source addresses
Reworked with "use_oif_addr".
Thanks,
-Erik
On 3 July 2015 at 16:03, YOSHIFUJI Hideaki
<hideaki.yoshifuji@...aclelinux.com> wrote:
> Hi,
>
> Erik Kline wrote:
>> 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@...gle.com>
>> ---
>> Documentation/networking/ip-sysctl.txt | 12 ++++++++++++
>> include/linux/ipv6.h | 1 +
>> include/uapi/linux/ipv6.h | 1 +
>> net/ipv6/addrconf.c | 30 +++++++++++++++++++++++++-----
>> 4 files changed, 39 insertions(+), 5 deletions(-)
>>
>> diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt
>> index 5fae770..d8f3e60 100644
>> --- a/Documentation/networking/ip-sysctl.txt
>> +++ b/Documentation/networking/ip-sysctl.txt
>> @@ -1435,6 +1435,18 @@ mtu - INTEGER
>> Default Maximum Transfer Unit
>> Default: 1280 (IPv6 required minimum)
>>
>> +restrict_srcaddr - INTEGER
>> + Restrict candidate source addresses (vis. RFC 6724, section 4).
>> +
>> + When set to 1, the candidate source addresses for destinations
>> + routed via this interface are restricted to the set of addresses
>> + configured on this interface.
>> +
>> + Possible values are:
>> + 0 : no source address restrictions
>> + 1 : require matching outgoing interface
>> + Default: 0
>> +
>
> I cannot get what "restrict" restricts. How about "use_oif_addr" or
> something like that (like use_tempaddr)?
>
> --
> Hideaki Yoshifuji <hideaki.yoshifuji@...aclelinux.com>
> Technical Division, MIRACLE LINUX CORPORATION
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists