[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <705cac76-dc97-4bfa-9340-1dbaa5de3b2b@kernel.org>
Date: Wed, 14 Feb 2024 08:39:36 -0700
From: David Ahern <dsahern@...nel.org>
To: Alex Henrie <alexhenrie24@...il.com>, netdev@...r.kernel.org,
dan@...m.net, bagasdotme@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, jikos@...nel.org
Subject: Re: [PATCH net-next v2 2/3] net: ipv6/addrconf: introduce a
regen_min_advance sysctl
On 2/13/24 11:26 PM, Alex Henrie wrote:
> In RFC 8981, REGEN_ADVANCE cannot be less than 2 seconds, and the RFC
> does not permit the creation of temporary addresses with lifetimes
> shorter than that:
>
>> When processing a Router Advertisement with a
>> Prefix Information option carrying a prefix for the purposes of
>> address autoconfiguration (i.e., the A bit is set), the host MUST
>> perform the following steps:
>
>> 5. A temporary address is created only if this calculated preferred
>> lifetime is greater than REGEN_ADVANCE time units.
>
> However, some users want to change their IPv6 address as frequently as
> possible regardless of the RFC's arbitrary minimum lifetime. For the
> benefit of those users, add a regen_min_advance sysctl parameter that
> can be set to below or above 2 seconds.
>
> Link: https://datatracker.ietf.org/doc/html/rfc8981
> Signed-off-by: Alex Henrie <alexhenrie24@...il.com>
> ---
> Documentation/networking/ip-sysctl.rst | 10 ++++++++++
> include/linux/ipv6.h | 1 +
> include/net/addrconf.h | 5 +++--
> net/ipv6/addrconf.c | 11 ++++++++++-
> 4 files changed, 24 insertions(+), 3 deletions(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists