[PATCH 1/2] net: dhcp6: Add DHCPv6 (DHCP for IPv6)

Simon Glass sjg at chromium.org
Thu Feb 2 18:12:04 CET 2023


Hi,

On Wed, 1 Feb 2023 at 17:26, <seanedmond at linux.microsoft.com> wrote:
>
> From: Sean Edmond <seanedmond at microsoft.com>
>
> Adds DHCPv6 protocol to u-boot.
>
> Allows for address assignement with DHCPv6 4-message exchange
> (SOLICIT->ADVERTISE->REQUEST->REPLY).  Includes DHCPv6 options
> required by RFC 8415.  Also adds DHCPv6 options required
> for PXE boot.
>
> New configs added:
> - CMD_DHCP6
> - DHCP6_PXE_CLIENTARCH
> - DHCP6_PXE_DHCP_OPTION
> - DHCP6_ENTERPRISE_ID
>
> Possible enhancements:
> - Duplicate address detection on DHCPv6 assigned address
> - IPv6 address assignement through SLAAC
> - Sending/parsing other DHCPv6 options (NTP, DNS, etc...)
>
> Signed-off-by: Sean Edmond <seanedmond at microsoft.com>
> ---
>  cmd/Kconfig   |  26 ++
>  include/net.h |   8 +-
>  net/Makefile  |   1 +
>  net/dhcpv6.c  | 741 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  net/dhcpv6.h  | 212 +++++++++++++++
>  net/net.c     |  12 +
>  6 files changed, 998 insertions(+), 2 deletions(-)
>  create mode 100644 net/dhcpv6.c
>  create mode 100644 net/dhcpv6.h

Can you write a sandbox test for this? See test/dm/eth.c

Regards,
Simon


More information about the U-Boot mailing list