mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
4e717060fd
Per RFC 4862 section 5.5.3, the SLAAC address of a on-link prefix will not immediately be invalidated even if the on-link prefix is sent with zero PIO valid lifetime but we currently removes the external route for the on-link prefix when we see zero valid lifetime. This results in an error case that a Thread device can not reach a valid SLAAC address of a Wi-Fi host on the same infra link because there is no routes for this address. This commit fixes this issue by delay removing the external route for the discovered on-link prefix untill its valid lifetime expires. Meanwhile, the Border Router now considers a deprecated (zero preferred lifetime) on-link prefix not usable. Thus, the Border Router will start advertising its own on-link prefix when current on-link prefix is deprecated.