From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80FF0C05027 for ; Thu, 2 Feb 2023 00:26:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9C6F85E39; Thu, 2 Feb 2023 01:26:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="oW1ZguOp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F390485D40; Thu, 2 Feb 2023 01:26:31 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id 2874B85E39 for ; Thu, 2 Feb 2023 01:26:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanedmond@linux.microsoft.com Received: from ovlvm106.redmond.corp.microsoft.com (unknown [131.107.174.57]) by linux.microsoft.com (Postfix) with ESMTPSA id 6341320B7102; Wed, 1 Feb 2023 16:26:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6341320B7102 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1675297587; bh=qMEk32KZkB/kcPw2CIzrTTNzb25AE6oAzjxGnD16Ods=; h=From:To:Cc:Subject:Date:From; b=oW1ZguOpsBCNoQzGHj24peOgfVu6s5YNsj18lxS+sCXIz+RffbO3Av22Kv+abXjcR xiANYR8jO9DMr3EKm39ZC+Wt3mjbcBJCYvnYeef/4JSec9wAoTTjH4roiV50d8MTke wHVEDCkgv7F2XznprcA1XElqMnTBKyQJOhAea31I= From: seanedmond@linux.microsoft.com To: u-boot@lists.denx.de Cc: joe.hershberger@ni.com, rfried.dev@gmail.com, sjg@chromium.org, v.v.mitrofanov@yadro.com, seanedmond@microsoft.com Subject: [PATCH 0/2] net: DHCPv6 protocol and commands Date: Wed, 1 Feb 2023 16:26:24 -0800 Message-Id: <20230202002626.32335-1-seanedmond@linux.microsoft.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Sean Edmond The recently integrated IPv6 patch series relies on the link-local address, or a statically assigned IPv6 address for network operations. This patch series adds IPv6 address assignment through DHCPv6. The implementation meets the requirements in RFC 8415 for "Client/Server Exchanges Involving Four Messages": https://www.rfc-editor.org/rfc/rfc8415 The implementation sends/receives the minimum required DHCPv6 options to network boot. A new command (dhcp6) will execute the protocol. In addition, IPv6 functionality has been extended to the existing pxe commands ("pxe get" and "pxe boot"). Sean Edmond (2): net: dhcp6: Add DHCPv6 (DHCP for IPv6) net: dhcp6: pxe: Add DHCP/PXE commands for IPv6 boot/bootmeth_distro.c | 2 +- boot/bootmeth_pxe.c | 4 +- boot/pxe_utils.c | 3 +- cmd/Kconfig | 26 ++ cmd/net.c | 22 ++ cmd/pxe.c | 86 ++++- cmd/sysboot.c | 2 +- include/net.h | 10 +- include/net6.h | 2 - include/pxe_utils.h | 10 +- net/Makefile | 1 + net/dhcpv6.c | 741 +++++++++++++++++++++++++++++++++++++++++ net/dhcpv6.h | 212 ++++++++++++ net/net.c | 12 + 14 files changed, 1113 insertions(+), 20 deletions(-) create mode 100644 net/dhcpv6.c create mode 100644 net/dhcpv6.h -- 2.39.0