]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootDhcp4.h
NetworkPkg: Use the New Functions from HttpLib
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootDhcp4.h
index 200501666b2ac9c36b53362e03c0471bdeb842ea..5ac7f7116536bc9a2770d4adb4cf966467a4cdce 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Functions declaration related with DHCPv4 for HTTP boot driver.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -96,11 +96,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///\r
 typedef enum {\r
   //\r
-  // <IP address, IP expressed URI> or\r
-  // <IP address, IP expressed URI, Name-server (will be ignored)>\r
+  // <IP address, IP expressed URI>\r
   //\r
   HttpOfferTypeDhcpIpUri,\r
   //\r
+  // <IP address, IP expressed URI, Name-server>\r
+  //\r
+  HttpOfferTypeDhcpIpUriDns,\r
+  //\r
   // <IP address, Domain-name expressed URI, Name-server>\r
   //\r
   HttpOfferTypeDhcpNameUriDns,\r
@@ -245,6 +248,17 @@ typedef struct {
   EFI_DHCP4_PACKET_OPTION     *OptList[HTTP_BOOT_DHCP4_TAG_INDEX_MAX];\r
 } HTTP_BOOT_DHCP4_PACKET_CACHE;\r
 \r
+/**\r
+  Select an DHCPv4 or DHCP6 offer, and record SelectIndex and SelectProxyType.\r
+\r
+  @param[in]  Private             Pointer to HTTP boot driver private data.\r
+\r
+**/\r
+VOID\r
+HttpBootSelectDhcpOffer (\r
+  IN HTTP_BOOT_PRIVATE_DATA  *Private\r
+  );\r
+\r
 /**\r
   Start the D.O.R.A DHCPv4 process to acquire the IPv4 address and other Http boot information.\r
 \r