From: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
To: Erik Kline <ek@google.com>, hannes@stressinduktion.org
Cc: hideaki.yoshifuji@miraclelinux.com, lorenzo@google.com,
netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH net-next] ipv6: sysctl to restrict candidate source addresses
Date: Fri, 03 Jul 2015 16:03:02 +0900 [thread overview]
Message-ID: <559633A6.9040403@miraclelinux.com> (raw)
In-Reply-To: <1435898941-9259-1-git-send-email-ek@google.com>
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@google.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@miraclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION
next prev parent reply other threads:[~2015-07-03 7:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 4:49 [PATCH net-next] ipv6: sysctl to restrict candidate source addresses Erik Kline
2015-07-03 7:03 ` YOSHIFUJI Hideaki [this message]
2015-07-06 3:06 ` Erik Kline
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559633A6.9040403@miraclelinux.com \
--to=hideaki.yoshifuji@miraclelinux.com \
--cc=davem@davemloft.net \
--cc=ek@google.com \
--cc=hannes@stressinduktion.org \
--cc=lorenzo@google.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).