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

Tom Rini trini at konsulko.com
Fri Feb 3 23:12:26 CET 2023


On Thu, Feb 02, 2023 at 10:12:04AM -0700, Simon Glass wrote:
> 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

This should be like our existing dhcp test I think, under
test/py/tests/test_net.py

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230203/6487ac9c/attachment-0001.sig>


More information about the U-Boot mailing list