lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #10415] Stateful DHCPv6 client with prefix delegatio


From: Pavel Kovar
Subject: [lwip-devel] [patch #10415] Stateful DHCPv6 client with prefix delegation
Date: Wed, 22 Nov 2023 04:19:49 -0500 (EST)

URL:
  <https://savannah.nongnu.org/patch/?10415>

                 Summary: Stateful DHCPv6 client with prefix delegation
                   Group: lwIP - A Lightweight TCP/IP stack
               Submitter: pavelkovarnxp
               Submitted: Wed 22 Nov 2023 10:19:46 AM CET
                Category: DHCP
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 22 Nov 2023 10:19:46 AM CET By: Pavel Kovar <pavelkovarnxp>
DHCPv6: Add stateful mode and prefix delegation support and unit test.

Overhaul of dhcpv6 client to support IPv6 address autoconfiguration as per RFC
8415 (stateful DHCPv6 with prefix delegation) and RFC 3736 (stateless
DHCPv6).

*Interface:*
dhcp6_enable() enables DHCPv6 for a netif.
dhcp6_disable() disable DHCPv6 for a netif (unchanged)
dhcp6_set_client_id_duid() enables use of the app’s own DUID instead of
hwaddr.

define LWIP_IPV6_DHCP6_STATEFUL to 1 to support a stateful client (Can give
you an address using DHCP6)
define LWIP_IPV6_DHCP6_PD to 1 to request a prefix from your router.


Use LWIP_DHCP6_ORO_OPTS_CUSTOM with LWIP_HOOK_DHCP6_PARSE_ORO_OPTS_CUSTOM to
set and process additional ORO options.


*Limitations and features good to know about:*
* Solicitation is sent only on the router advertisement reception
* Client always picks the first advertisement and continues with that server.

* Rapid commit is not supported
* Client is not keeping a list of multiple potential servers, so rebinding is
not supported. The client will transit to the solicitation state instead.
* When the server replies to renew with address or prefix with zero valid
time, the client goes to the solicitation state.

When enabled, requests are only issued after the receipt of RA with the
corresponding bits set.
----
(Base commit for included patch is 5e3268cf3ea16 branch master)






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Wed 22 Nov 2023 10:19:46 AM CET  Name:
0001-DHCPv6-Add-stateful-mode-and-prefix-delegation-suppo.patch  Size: 136KiB 
 By: pavelkovarnxp

<http://savannah.nongnu.org/patch/download.php?file_id=55348>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?10415>

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]