From: Jiri Pirko <jiri@resnulli.us>
To: Patrick Rohr <prohr@google.com>
Cc: "David S. Miller" <davem@davemloft.net>,
"Linux Network Development Mailing List" <netdev@vger.kernel.org>,
"Maciej Żenczykowski" <maze@google.com>,
"Lorenzo Colitti" <lorenzo@google.com>,
"Jen Linkova" <furry@google.com>
Subject: Re: [PATCH net-next v2] net: add sysctl to disable rfc4862 5.5.3e lifetime handling
Date: Wed, 13 Sep 2023 10:12:45 +0200 [thread overview]
Message-ID: <ZQFu/SXXAhN10jNY@nanopsycho> (raw)
In-Reply-To: <20230912134425.4083337-1-prohr@google.com>
Tue, Sep 12, 2023 at 03:44:25PM CEST, prohr@google.com wrote:
>This change adds a sysctl to opt-out of RFC4862 section 5.5.3e's valid
>lifetime derivation mechanism.
>
>RFC4862 section 5.5.3e prescribes that the valid lifetime in a Router
>Advertisement PIO shall be ignored if it less than 2 hours and to reset
>the lifetime of the corresponding address to 2 hours. An in-progress
>6man draft (see draft-ietf-6man-slaac-renum-07 section 4.2) is currently
>looking to remove this mechanism. While this draft has not been moving
>particularly quickly for other reasons, there is widespread consensus on
>section 4.2 which updates RFC4862 section 5.5.3e.
>
>Cc: Maciej Żenczykowski <maze@google.com>
>Cc: Lorenzo Colitti <lorenzo@google.com>
>Cc: Jen Linkova <furry@google.com>
>Signed-off-by: Patrick Rohr <prohr@google.com>
>---
> Documentation/networking/ip-sysctl.rst | 11 ++++++++
> include/linux/ipv6.h | 1 +
> net/ipv6/addrconf.c | 38 +++++++++++++++++---------
> 3 files changed, 37 insertions(+), 13 deletions(-)
>
>diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst
>index a66054d0763a..7f21877e3f78 100644
>--- a/Documentation/networking/ip-sysctl.rst
>+++ b/Documentation/networking/ip-sysctl.rst
>@@ -2304,6 +2304,17 @@ accept_ra_pinfo - BOOLEAN
> - enabled if accept_ra is enabled.
> - disabled if accept_ra is disabled.
>
>+ra_pinfo_rfc4862_5_5_3e - BOOLEAN
This is very odd sysctl name.
>+ Use RFC4862 Section 5.5.3e to determine the valid lifetime of
>+ an address matching a prefix sent in a Router Advertisement
>+ Prefix Information Option.
>+
>+ - If enabled, RFC4862 section 5.5.3e is used to determine
>+ the valid lifetime of the address.
>+ - If disabled, the PIO valid lifetime will always be honored.
Can't you reverse the logic and call it something like:
ra_honor_pio_lifetime
?
next prev parent reply other threads:[~2023-09-13 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 13:44 [PATCH net-next v2] net: add sysctl to disable rfc4862 5.5.3e lifetime handling Patrick Rohr
2023-09-13 8:12 ` Jiri Pirko [this message]
2023-09-13 8:49 ` Lorenzo Colitti
2023-09-13 17:20 ` Maciej Żenczykowski
2023-09-14 5:51 ` Lorenzo Colitti
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=ZQFu/SXXAhN10jNY@nanopsycho \
--to=jiri@resnulli.us \
--cc=davem@davemloft.net \
--cc=furry@google.com \
--cc=lorenzo@google.com \
--cc=maze@google.com \
--cc=netdev@vger.kernel.org \
--cc=prohr@google.com \
/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