Summary: IPv6 auto configuration need some optimization
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: kevingao
Submitted on: Thu 28 Mar 2019 07:25:11 AM UTC
Severity: 3 - Normal
Item Group: Change Request
Assigned to: None
Discussion Lock: Any
Planned Release: None
lwIP version: git head
1,currently we can use netif_set_ip6_autoconfig_enabled to enable auto
configuration on one specific netif, but this was just a Macro, not an thread
safe function. It is better to expose this API as one netifapi function to
make the user enable/disable auto configuration dynamically.
2,when enable auto configuration, lwip should send out Router Solicitation in
order to scan the Router, this could save much of the auto configuration
3,when disable auto configuration, the auto configured IPv6 address should set
to invalid and not use anymore. Beside, netif->prefix->flag should be cleared.
[bug #56016] IPv6 auto configuration need some optimization
Follow-up Comment #1, bug #56016 (project lwip):
update the statement in the 1st comment:
1, for the 2nd item, when enable auto configuration, RFC4862 also suggest to
send RS. pls refer RFC4862 section 5.5.1, "Router Advertisements are sent
periodically to the all-nodes multicast address. To obtain an advertisement
quickly, a host sends out Router Solicitations as described in [RFC4861]."
2, for the 3rd item, when disable auto configuration, I think maybe I am
wrong, the auto configurated address could be still usable until invalid timer
trigged. RFC4862 has no statement on this scenario.
3, in order to make lwip works well in Plug-and-Play scenario, I recommend to
fix the issue bug#55602 to handle the case that host switch from one subnet to