]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/DnsImpl.h
MdeModulePkg/FrameBufferBltLib: Fix copying of unaligned memory
[mirror_edk2.git] / NetworkPkg / DnsDxe / DnsImpl.h
index 8cd73e73a6897e13f548cf1c30db40017d1b63d3..3c6296cb65ad4d5df0daa76beaf1d26018f01502 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 DnsDxe support functions implementation.\r
    \r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -86,8 +86,6 @@ extern EFI_DNS6_PROTOCOL             mDns6Protocol;
 #define DNS_STATE_DESTROY        2\r
 \r
 #define DNS_DEFAULT_TIMEOUT      2\r
-#define DNS_DEFAULT_RETRY        3\r
-#define DNS_DEFAULT_BLKSIZE      512\r
 \r
 #define DNS_TIME_TO_GETMAP       5\r
 \r
@@ -116,6 +114,7 @@ typedef struct {
 } DNS6_SERVER_IP;\r
 \r
 typedef struct {\r
+  UINT32                     RetryCounting;\r
   UINT32                     PacketToLive;\r
   CHAR16                     *QueryHostName;\r
   EFI_IPv4_ADDRESS           QueryIpAddress;\r
@@ -124,6 +123,7 @@ typedef struct {
 } DNS4_TOKEN_ENTRY;\r
 \r
 typedef struct {\r
+  UINT32                     RetryCounting;\r
   UINT32                     PacketToLive;\r
   CHAR16                     *QueryHostName;\r
   EFI_IPv6_ADDRESS           QueryIpAddress;\r
@@ -556,30 +556,13 @@ AddDns6ServerIp (
   IN EFI_IPv6_ADDRESS           ServerIp\r
   );\r
 \r
-/**\r
-  Fill QName for IP querying. QName is a domain name represented as \r
-  a sequence of labels, where each label consists of a length octet \r
-  followed by that number of octets. The domain name terminates with \r
-  the zero length octet for the null label of the root.\r
-\r
-  @param  HostName          Queried HostName    \r
-\r
-  @retval NULL      Failed to fill QName.\r
-  @return           QName filled successfully.\r
-  \r
-**/ \r
-CHAR8 *\r
-EFIAPI\r
-DnsFillinQNameForQueryIp (\r
-  IN  CHAR16              *HostName\r
-  );\r
-\r
 /**\r
   Find out whether the response is valid or invalid.\r
 \r
   @param  TokensMap       All DNS transmittal Tokens entry.  \r
   @param  Identification  Identification for queried packet.  \r
   @param  Type            Type for queried packet.\r
+  @param  Class           Class for queried packet.\r
   @param  Item            Return corresponding Token entry.\r
 \r
   @retval TRUE            The response is valid.\r
@@ -591,6 +574,7 @@ IsValidDnsResponse (
   IN     NET_MAP      *TokensMap,\r
   IN     UINT16       Identification,\r
   IN     UINT16       Type,\r
+  IN     UINT16       Class,\r
      OUT NET_MAP_ITEM **Item\r
   );\r
 \r