Re: [PATCH 2/8] net: read bracketed ipv6 addrs and port numbers

2016-08-03 Thread Andrei Borzenkov
On Wed, Aug 3, 2016 at 9:34 AM, Michael Chang wrote: > 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 >

[PATCH 3/8] bootp: New net_bootp6 command

2016-08-03 Thread 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 --- grub-core/net/bootp.c | 908 +- grub-core/net/ip.c

[PATCH 8/8] efinet: Setting DNS server from UEFI protocol

2016-08-03 Thread Michael Chang
In the URI device path node, any name rahter than address can be used for looking up the resources so that DNS service become needed to get answer of the name's address. Unfortunately the DNS is not defined in any of the device path nodes so that we use the EFI_IP4_CONFIG2_PROTOCOL and

[PATCH 7/8] efinet: Setting network from UEFI device path

2016-08-03 Thread Michael Chang
The PXE Base Code protocol used to obtain cached PXE DHCPACK packet is no longer provided for HTTP Boot. Instead, we have to get the HTTP boot information from the device path nodes defined in following UEFI Specification sections. 9.3.5.12 IPv4 Device Path 9.3.5.13 IPv6 Device Path 9.3.5.23

[PATCH 5/8] grub.texi: Add net_bootp6 doument

2016-08-03 Thread Michael Chang
Update grub documentation for net_bootp6 command. Signed-off-by: Michael Chang Signed-off-by: Ken Lin --- docs/grub.texi | 17 + 1 file changed, 17 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi index 82f6fa4..60b4aa0 100644 ---

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

2016-08-03 Thread 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: Ken

[PATCH 2/8] net: read bracketed ipv6 addrs and port numbers

2016-08-03 Thread Michael Chang
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 --- grub-core/net/http.c | 21 ++--- grub-core/net/net.c | 86

[PATCH 1/8] misc: fix invalid character recongition in strto*l

2016-08-03 Thread Michael Chang
From: Aaron Miller Would previously allow digits larger than the base and didn't check that subtracting the difference from 0-9 to lowercase letters for characters larger than 9 didn't result in a value lower than 9, which allowed the parses: ` = 9, _ = 8, ^ = 7, ] = 6, \ =

[PATCH 6/8] bootp: Add processing DHCPACK packet from HTTP Boot

2016-08-03 Thread Michael Chang
The vendor class identifier with the string "HTTPClient" is used to denote the packet as responding to HTTP boot request. In DHCP4 config, the filename for HTTP boot is the URL of the boot file while for PXE boot it is the path to the boot file. As a consequence, the next-server becomes obseleted

Patches to support UEFI HTTP Boot IPv4 and IPv6

2016-08-03 Thread Michael Chang
This patch set enables UEFI HTTP Boot suppot for IPv4 and IPv6. It has been tested on OVMF virtual machine and several physical servers to work. We would like to contribute the current work to upstream to get better vision and support in the future through a much larger community. The first two