Repository navigation
sd-ndisc: do not stop solicitations on zero-lifetime RA - #43698
Conversation
Completed five of eight review lenses: security and robustness, architecture/API design and compatibility, coding style and maintainability, tests and regression coverage, and IPv6 NDisc protocol conformance (RFC 4861/4862/8106, domain-specific lens). Incomplete lenses: correctness and memory safety, and resource lifetimes and concurrency — both reviewers exceeded their time budget and were stopped before returning findings, so those two perspectives are not represented below. Three candidate style findings (a terser sd_ndisc_router_get_lifetime() call form, braces/blank line around the new Confirmed findings:
|
RFC 4861 section 6.3.7 states that a host should send at least one Router Solicitation even if it receives an unsolicited Router Advertisement before sending its first solicitation, and should stop soliciting only after receiving a valid Router Advertisement with a non-zero Router Lifetime. Keep the RS timer active until both conditions are met, and add a regression test for a zero-lifetime RA arriving before the initial RS. Fixes systemd#43205.
c038e83 to
d28623d
Compare
|
@quanyeyang Thank you! I slightly adjusted the commits to address suggestions by Claude and squash them. |
RFC 4861 section 6.3.7 says that a host should send at least one Router Solicitation when an advertisement is received before the first solicitation, and should desist only after receiving a valid Router Advertisement with a non-zero Router Lifetime.
Keep the RS timer active until both conditions are met, and add a regression test for a lifetime-zero RA arriving before the initial RS.
Fixes #43205.