net: add sysctl to disable rfc4862 5.5.3e lifetime handling
authorPatrick Rohr <prohr@google.com>
Mon, 25 Sep 2023 21:47:11 +0000 (14:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Oct 2023 22:51:04 +0000 (15:51 -0700)
commit473267a4911f2469722c74ca58087d951072f72a
tree08602d445874bbf990af9bb0ea03dc0f05ba38d6
parent8989682a1cb600bac1149ed17b1ce929ab472e79
net: add sysctl to disable rfc4862 5.5.3e lifetime handling

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>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20230925214711.959704-1-prohr@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ip-sysctl.rst
include/linux/ipv6.h
net/ipv6/addrconf.c