]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]
authorMatt Muggeridge <Matt.Muggeridge@hpe.com>
Mon, 13 May 2024 20:30:22 +0000 (06:30 +1000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 13 May 2024 22:08:43 +0000 (07:08 +0900)
commit68adffed0224e4b9c787af296ab34c826c845241
tree5b1e970c58ef9490d3d94a59c88697771adb2fd5
parent2d393b1b6d8c8cb131b70714ef5cd2d5d1c446bf
network: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) [v6LC.3.2.2]

RFC 4862 Section 5.5.3, bullet e, sub-bullet 3 applies to existing
addresses, i.e. when address_get() returns success. If the address is
new (i.e. address_get() fails), then we should not be adding 2 hours to
the lifetime_valid_usec. Instead, use the valid_lifetime from the RA's
Prefix Information Option.

This change allows v6LC.3.2.2 to pass. Also verified all v6LC3.2.* tests
pass. This covers all the v6LC tests from Group2: Router Advertisement
Processing and Address Lifetime.

Fixes #32652.
src/network/networkd-ndisc.c