Re: [PATCH 3/4] efinet: UEFI IPv6 PXE support

2020-06-04 Thread Michael Chang
On Thu, Jun 04, 2020 at 01:37:52PM +0200, Thomas Frauendorfer wrote: > Hi, > > You replace the 'unused[52]' field before dhcp_discover with 51 bytes. > While the UEFI spec also defines the EFI_PXE_BASE_CODE_MODE struct in > this way it also specifies that an EFI_IP_ADDRESS is 16-byte buffer > alig

Re: [PATCH 3/4] efinet: UEFI IPv6 PXE support

2020-06-04 Thread Thomas Frauendorfer
Hi, You replace the 'unused[52]' field before dhcp_discover with 51 bytes. While the UEFI spec also defines the EFI_PXE_BASE_CODE_MODE struct in this way it also specifies that an EFI_IP_ADDRESS is 16-byte buffer aligned on a 4-byte boundary. So there should probably be a grub_efi_uint8_t between

[PATCH 4/4] grub.texi: Add net_bootp6 document

2020-06-04 Thread Javier Martinez Canillas
From: Michael Chang Update grub documentation for net_bootp6 command. Signed-off-by: Michael Chang Signed-off-by: Ken Lin Signed-off-by: Javier Martinez Canillas --- docs/grub.texi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi index

[PATCH 2/4] bootp: New net_bootp6 command

2020-06-04 Thread Javier Martinez Canillas
From: Michael Chang Implement new net_bootp6 command for IPv6 network auto configuration via the DHCPv6 protocol (RFC3315). Signed-off-by: Michael Chang Signed-off-by: Ken Lin Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/net/bootp.c | 914 +++

[PATCH 0/4] UEFI IPv6 and DHCPv6 support

2020-06-04 Thread Javier Martinez Canillas
Hello, This series contains patches that come from the SUSE package that adds a net_bootp6 command to auto configure the network interfaces by using the DHCPv6 protocol. They also add support to do the auto configuration when GRUB is booted from UEFI IPv6 PXE. We have been carrying these for a lo

[PATCH 1/4] net: read bracketed ipv6 addrs and port numbers

2020-06-04 Thread Javier Martinez Canillas
From: Aaron Miller Allow specifying port numbers for http and tftp paths, and allow ipv6 addresses to be recognized with brackets around them, which is required to specify a port number Signed-off-by: Aaron Miller Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-c

[PATCH 3/4] efinet: UEFI IPv6 PXE support

2020-06-04 Thread Javier Martinez Canillas
From: Michael Chang When grub2 image is booted from UEFI IPv6 PXE, the DHCPv6 Reply packet is cached in firmware buffer which can be obtained by PXE Base Code protocol. The network interface can be setup through the parameters in that obtained packet. Signed-off-by: Michael Chang Signed-off-by: