From fa848a4048943251fc057fe8d6c5a82e01d2ffb6 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Mon, 15 Feb 2016 13:55:11 +0800 Subject: NetworkPkg: Add URI configuration form to HTTP boot driver. This patch updates the HTTP boot driver to produce a setup page for the boot file URI configuration. A new boot option will be created for the manual configured URI address. This change is made to support the HTTP boot usage in home environment. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Wu Jiaxin Reviewed-by: Ye Ting --- NetworkPkg/HttpBootDxe/HttpBootDhcp6.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NetworkPkg/HttpBootDxe/HttpBootDhcp6.c') diff --git a/NetworkPkg/HttpBootDxe/HttpBootDhcp6.c b/NetworkPkg/HttpBootDxe/HttpBootDhcp6.c index 2538bd116c..d2960e4f6c 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootDhcp6.c +++ b/NetworkPkg/HttpBootDxe/HttpBootDhcp6.c @@ -298,7 +298,11 @@ HttpBootParseDhcp6Packet ( // if (IsHttpOffer) { if (IpExpressedUri) { - OfferType = IsProxyOffer ? HttpOfferTypeProxyIpUri : HttpOfferTypeDhcpIpUri; + if (IsProxyOffer) { + OfferType = HttpOfferTypeProxyIpUri; + } else { + OfferType = IsDnsOffer ? HttpOfferTypeDhcpIpUriDns : HttpOfferTypeDhcpIpUri; + } } else { if (!IsProxyOffer) { OfferType = IsDnsOffer ? HttpOfferTypeDhcpNameUriDns : HttpOfferTypeDhcpNameUri; -- cgit v1.2.3