patchlwIP - A Lightweight TCP/IP stack - Patches: patch #10415, Stateful DHCPv6 client with prefix...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10415: Stateful DHCPv6 client with prefix delegation

Submitter:  Pavel Kovar <pavelkovarnxp>
Submitted:  Wed 22 Nov 2023 09:19:46 AM UTC
   
 
Category:  DHCP Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Wed 22 Nov 2023 09:19:46 AM UTC, original submission:  

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)

Pavel Kovar <pavelkovarnxp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pavelkovarnxp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-11-22 pavelkovarnxp Attached File- Added 0001-DHCPv6-Add-stateful-mode-and-prefix-delegation-suppo.patch, #55348

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code