[bug #56016] IPv6 auto configuration need some optimization

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #56016] IPv6 auto configuration need some optimization

Wilfred
URL:
  <https://savannah.nongnu.org/bugs/?56016>

                 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
                Category: IPv6
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

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
time.
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.





    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56016>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #56016] IPv6 auto configuration need some optimization

Wilfred
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
another.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56016>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel