[routing-manager] retry sending failed RS messages (#7038)

Current implement will start evaluating on-link prefix before
successfully sending kMaxRtrSolicitations=3 RS messages. This commit
fixes this issue by retrying sending failed RS messages in
kRtrSolicitationRetryFailDelay=60 seconds.
This commit is contained in:
kangping
2021-09-29 22:24:30 -07:00
committed by GitHub
parent 15141cde23
commit 0696ce45a8
3 changed files with 14 additions and 6 deletions
@@ -267,8 +267,9 @@ class SingleBorderRouter(thread_cert.TestCase):
br.enable_ether()
# It takes around 10 seconds to start sending RA messages.
self.simulator.go(15)
# The routing manager may fail to send RS and will wait for 60 seconds
# before retrying.
self.simulator.go(80)
self.collect_ipaddrs()
logging.info("BR addrs: %r", br.get_addrs())