Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pF1be-0000n7-S9 for mharc-grub-devel@gnu.org; Mon, 09 Jan 2023 18:31:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pF1ba-0000kI-TI for grub-devel@gnu.org; Mon, 09 Jan 2023 18:31:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pF1bY-0003Nv-Er for grub-devel@gnu.org; Mon, 09 Jan 2023 18:31:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673307059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yKgU0hmmTxEyLjJHaMxjFwuEgh5KlUcGWAI4kMGI8Ps=; b=Maf+q7BNSVpW1Wf7FEGNKaGwbFVQT7RWAPcyRUB0vBKhnnOFz2kLUD9nfS+jec0ZlmESKj JN9dpQtoBorK3meICphO/zYW+IrsaXFlg8LgC5jGxJQlb+dVPbD9nQMUsjTAF/e8xM2R0j OVO2Vn5c1Hx22zeKk2MAMa7bgmlyMiw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-125-gIHNMKg_Pgmd9dpDdMhYnw-1; Mon, 09 Jan 2023 18:30:56 -0500 X-MC-Unique: gIHNMKg_Pgmd9dpDdMhYnw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5AFBC80234E; Mon, 9 Jan 2023 23:30:56 +0000 (UTC) Received: from eesha.redhat.com (unknown [10.22.9.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B22040C2064; Mon, 9 Jan 2023 23:30:56 +0000 (UTC) From: Robbie Harwood To: grub-devel@gnu.org Cc: Robbie Harwood , dkiper@net-space.pl Subject: [PATCH v4 00/19] UEFI networking support including ipv6 + dhcpv6 Date: Mon, 9 Jan 2023 18:30:26 -0500 Message-Id: <20230109233045.85477-1-rharwood@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Received-SPF: pass client-ip=170.10.129.124; envelope-from=rharwood@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2023 23:31:03 -0000 This series is an omnibus of changes we carry for networking that has accumulated since at least 2015. While most of it did not receive review when previously posted, one did, so I'm using that as an excuse to call this v4. At the start, this includes a proposed revert of ac8a37dda0eabdd80506bebe4fb9a5a9fd227935 ("net/http: Allow use of non-standard TCP/IP ports"). In 2016, a different approach to this more in keeping with the way port numbers are typically specified was posted on-list: https://lists.gnu.org/archive/html/grub-devel/2016-04/msg00071.html [1] At least Debian, Red Hat, SUSE, and Ubuntu have carried it since then, which means that code in the wild expects this syntax, not the other syntax. (Others may have as well - I didn't do an exhaustive check - but hopefully that's enough to convey the point.) At this point, the division of code between patches is mostly organic. I've folded bugfixes into their original commits and moved a few other things around, so while this doesn't exactly match the division in the rhboot tree, it does match the code. At this version, the only code differences are style adjustments and rebasing around the vlan changes that merged since 2.06. Be well, --Robbie 1: For the curious, while the strtoull patch mentioned there was also not taken, the issue is no longer present. Aaron Miller (1): net: read bracketed ipv6 addrs and port numbers Ian Page Hands (1): efinet: Add DHCP proxy support Javier Martinez Canillas (3): efi/http: Enclose literal IPv6 addresses in square brackets http: Prepend prefix when the HTTP path is relative normal/main: Discover the device to read the config from as a fallback Mark Salter (1): use fw_path prefix when fallback searching for grub config Michael Chang (6): efinet: add structures for PXE messages grub.texi: Add net_bootp6 doumentation bootp: Process DHCPACK packet during HTTP Boot efinet Configure network from UEFI device path efinet: set DNS server from UEFI protocol Support UEFI networking protocols Paulo Flabiano Smorigo (1): Add fw_path variable to detect config file on efi Peter Jones (4): efinet + bootp: add net_bootp6 command supporting dhcpv6 efinet: also use the firmware acceleration for http efi/http: match protocol+hostname of boot url in root_url Try mac/guid/etc before grub.cfg on tftp config files Robbie Harwood (1): Revert "net/http: Allow use of non-standard TCP/IP ports" Stephen Benjamin (1): Prepend prefix when HTTP path is relative docs/grub.texi | 50 +- grub-core/Makefile.core.def | 12 + grub-core/io/bufio.c | 2 +- grub-core/kern/efi/efi.c | 96 +- grub-core/kern/ieee1275/init.c | 28 +- grub-core/kern/main.c | 22 +- grub-core/net/bootp.c | 965 ++++++++++++++++++- grub-core/net/drivers/efi/efinet.c | 521 +++++++++- grub-core/net/efi/dhcp.c | 357 +++++++ grub-core/net/efi/efi_netfs.c | 57 ++ grub-core/net/efi/http.c | 490 ++++++++++ grub-core/net/efi/ip4_config.c | 417 ++++++++ grub-core/net/efi/ip6_config.c | 423 +++++++++ grub-core/net/efi/net.c | 1416 ++++++++++++++++++++++++++++ grub-core/net/efi/pxe.c | 354 +++++++ grub-core/net/http.c | 76 +- grub-core/net/ip.c | 39 + grub-core/net/net.c | 235 ++++- grub-core/net/tftp.c | 10 +- grub-core/normal/main.c | 149 ++- include/grub/efi/api.h | 397 +++++++- include/grub/efi/dhcp.h | 347 +++++++ include/grub/efi/http.h | 215 +++++ include/grub/net.h | 81 ++ include/grub/net/efi.h | 144 +++ util/grub-mknetdir.c | 23 +- 26 files changed, 6736 insertions(+), 190 deletions(-) create mode 100644 grub-core/net/efi/dhcp.c create mode 100644 grub-core/net/efi/efi_netfs.c create mode 100644 grub-core/net/efi/http.c create mode 100644 grub-core/net/efi/ip4_config.c create mode 100644 grub-core/net/efi/ip6_config.c create mode 100644 grub-core/net/efi/net.c create mode 100644 grub-core/net/efi/pxe.c create mode 100644 include/grub/efi/dhcp.h create mode 100644 include/grub/efi/http.h create mode 100644 include/grub/net/efi.h -- 2.39.0