Revert "network/ndisc: ignore most fields of RA header when lifetime is zero"
authorIvan Shapovalov <intelfx@intelfx.name>
Sun, 16 Jun 2024 08:46:34 +0000 (10:46 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:40 +0000 (14:04 +0100)
commit1cdeda986a52de77285396b84fba531934ccd6c7
tree3dc93c13b8c5f417e4dfd36127d65ce66da67254
parent812fc38b9147232862263e482ce19bec71137b95
Revert "network/ndisc: ignore most fields of RA header when lifetime is zero"

This reverts commit ffef01acddcac27caaef02f7f28bff03d7799e5e.

Similar to 2d393b1b6d8 ("network: IPv6 Compliance: Router Advertisement
Processing, Reachable Time [v6LC.2.2.15]"),

Extract from: https://www.ietf.org/rfc/rfc4861.html#section-4.2, p.21,
first paragraph:

    The Router Lifetime applies only to
    the router's usefulness as a default router; it
    does not apply to information contained in other
    message fields or options.

So it does not make sense to prevent DHCPv6 when Router Lifetime is 0.

Fixes #33357.

(cherry picked from commit 7767896d127264f660e1e8a714e5cd760840921f)
src/network/networkd-ndisc.c