UINT32 PacketToLive;\r
CHAR16 *QueryHostName;\r
EFI_IPv4_ADDRESS QueryIpAddress;\r
+ BOOLEAN GeneralLookUp;\r
EFI_DNS4_COMPLETION_TOKEN *Token;\r
} DNS4_TOKEN_ENTRY;\r
\r
UINT32 PacketToLive;\r
CHAR16 *QueryHostName;\r
EFI_IPv6_ADDRESS QueryIpAddress;\r
+ BOOLEAN GeneralLookUp;\r
EFI_DNS6_COMPLETION_TOKEN *Token;\r
} DNS6_TOKEN_ENTRY;\r
\r
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
+UINT8 *\r
+EFIAPI\r
+DnsFillinQNameForQueryIp (\r
+ IN CHAR16 *HostName\r
+ );\r
+\r
/**\r
Find out whether the response is valid or invalid.\r
\r
);\r
\r
/**\r
- Construct the Packet to query Ip.\r
+ Construct the Packet according query section.\r
\r
@param Instance The DNS instance\r
- @param HostName Queried HostName \r
- @param Type DNS query Type\r
- @param Packet The packet for querying Ip\r
+ @param QueryName Queried Name \r
+ @param Type Queried Type \r
+ @param Class Queried Class \r
+ @param Packet The packet for query\r
\r
@retval EFI_SUCCESS The packet is constructed.\r
@retval Others Failed to construct the Packet.\r
\r
**/\r
EFI_STATUS\r
-ConstructDNSQueryIp (\r
+ConstructDNSQuery (\r
IN DNS_INSTANCE *Instance,\r
- IN CHAR16 *HostName,\r
+ IN CHAR8 *QueryName,\r
IN UINT16 Type,\r
+ IN UINT16 Class,\r
OUT NET_BUF **Packet\r
);\r
\r