]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dhcp6: Add DHCPv6 (DHCP for IPv6)
authorSean Edmond <seanedmond@microsoft.com>
Tue, 11 Apr 2023 17:48:46 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 5 May 2023 21:48:44 +0000 (17:48 -0400)
commita0245818f7f8e375abc00f36ff88326331e4e2f9
tree12e0d73a675caf185f22e3b92305c2931bdcdd94
parent0b99afec9c8bb49fd2c28b35f36546b135b52b13
net: dhcp6: Add DHCPv6 (DHCP for IPv6)

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.

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@microsoft.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
include/net.h
net/Makefile
net/dhcpv6.c [new file with mode: 0644]
net/dhcpv6.h [new file with mode: 0644]
net/net.c