iPXE
Dns4.h
Go to the documentation of this file.
1 /** @file
2  This file defines the EFI Domain Name Service Binding Protocol interface. It is split
3  into the following two main sections:
4  DNSv4 Service Binding Protocol (DNSv4SB)
5  DNSv4 Protocol (DNSv4)
6 
7  Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
8  SPDX-License-Identifier: BSD-2-Clause-Patent
9 
10  @par Revision Reference:
11  This Protocol is introduced in UEFI Specification 2.5
12 
13 **/
14 
15 #ifndef __EFI_DNS4_PROTOCOL_H__
16 #define __EFI_DNS4_PROTOCOL_H__
17 
18 FILE_LICENCE ( BSD2_PATENT );
19 
20 #define EFI_DNS4_SERVICE_BINDING_PROTOCOL_GUID \
21  { \
22  0xb625b186, 0xe063, 0x44f7, {0x89, 0x5, 0x6a, 0x74, 0xdc, 0x6f, 0x52, 0xb4 } \
23  }
24 
25 #define EFI_DNS4_PROTOCOL_GUID \
26  { \
27  0xae3d28cc, 0xe05b, 0x4fa1, {0xa0, 0x11, 0x7e, 0xb5, 0x5a, 0x3f, 0x14, 0x1 } \
28  }
29 
31 
32 ///
33 /// EFI_DNS4_CONFIG_DATA
34 ///
35 typedef struct {
36  ///
37  /// Count of the DNS servers. When used with GetModeData(),
38  /// this field is the count of originally configured servers when
39  /// Configure() was called for this instance. When used with
40  /// Configure() this is the count of caller-supplied servers. If the
41  /// DnsServerListCount is zero, the DNS server configuration
42  /// will be retrieved from DHCP server automatically.
43  ///
45  ///
46  /// Pointer to DNS server list containing DnsServerListCount entries or NULL
47  /// if DnsServerListCountis 0. For Configure(), this will be NULL when there are
48  /// no caller supplied server addresses, and, the DNS instance will retrieve
49  /// DNS server from DHCP Server. The provided DNS server list is
50  /// recommended to be filled up in the sequence of preference. When
51  /// used with GetModeData(), the buffer containing the list will
52  /// be allocated by the driver implementing this protocol and must be
53  /// freed by the caller. When used with Configure(), the buffer
54  /// containing the list will be allocated and released by the caller.
55  ///
57  ///
58  /// Set to TRUE to use the default IP address/subnet mask and default routing table.
59  ///
61  ///
62  /// If TRUE, enable DNS cache function for this DNS instance. If FALSE, all DNS
63  /// query will not lookup local DNS cache.
64  ///
66  ///
67  /// Use the protocol number defined in "Links to UEFI-Related
68  /// Documents"(http://uefi.org/uefi) under the heading "IANA
69  /// Protocol Numbers". Only TCP or UDP are supported, and other
70  /// protocol values are invalid. An implementation can choose to
71  /// support only UDP, or both TCP and UDP.
72  ///
74  ///
75  /// If UseDefaultSetting is FALSE indicates the station address to use.
76  ///
78  ///
79  /// If UseDefaultSetting is FALSE indicates the subnet mask to use.
80  ///
82  ///
83  /// Local port number. Set to zero to use the automatically assigned port number.
84  ///
86  ///
87  /// Retry number if no response received after RetryInterval.
88  ///
90  ///
91  /// Minimum interval of retry is 2 second. If the retry interval is less than 2
92  /// seconds, then use the 2 seconds.
93  ///
96 
97 ///
98 /// EFI_DNS4_CACHE_ENTRY
99 ///
100 typedef struct {
101  ///
102  /// Host name.
103  ///
105  ///
106  /// IP address of this host.
107  ///
109  ///
110  /// Time in second unit that this entry will remain in DNS cache. A value of zero
111  /// means that this entry is permanent. A nonzero value will override the existing
112  /// one if this entry to be added is dynamic entry. Implementations may set its
113  /// default timeout value for the dynamically created DNS cache entry after one DNS
114  /// resolve succeeds.
115  ///
118 
119 ///
120 /// EFI_DNS4_MODE_DATA
121 ///
122 typedef struct {
123  ///
124  /// The configuration data of this instance.
125  ///
127  ///
128  /// Number of configured DNS server. Each DNS instance has its own DNS server
129  /// configuration.
130  ///
132  ///
133  /// Pointer to common list of addresses of all configured DNS server
134  /// used by EFI_DNS4_PROTOCOL instances. List will include
135  /// DNS servers configured by this or any other EFI_DNS4_PROTOCOL instance.
136  /// The storage for this list is allocated by the driver publishing this
137  /// protocol, and must be freed by the caller.
138  ///
140  ///
141  /// Number of DNS Cache entries. The DNS Cache is shared among all DNS instances.
142  ///
144  ///
145  /// Pointer to a buffer containing DnsCacheCount DNS Cache
146  /// entry structures. The storage for this list is allocated by the driver
147  /// publishing this protocol and must be freed by caller.
148  ///
151 
152 ///
153 /// DNS_HOST_TO_ADDR_DATA
154 ///
155 typedef struct {
156  ///
157  /// Number of the returned IP addresses.
158  ///
160  ///
161  /// Pointer to the all the returned IP addresses.
162  ///
165 
166 ///
167 /// DNS_ADDR_TO_HOST_DATA
168 ///
169 typedef struct {
170  ///
171  /// Pointer to the primary name for this host address. It's the caller's
172  /// responsibility to free the response memory.
173  ///
176 
177 ///
178 /// DNS_RESOURCE_RECORD
179 ///
180 typedef struct {
181  ///
182  /// The Owner name.
183  ///
185  ///
186  /// The Type Code of this RR.
187  ///
189  ///
190  /// The CLASS code of this RR.
191  ///
193  ///
194  /// 32 bit integer which specify the time interval that the resource record may be
195  /// cached before the source of the information should again be consulted. Zero means
196  /// this RR can not be cached.
197  ///
199  ///
200  /// 16 big integer which specify the length of RData.
201  ///
203  ///
204  /// A string of octets that describe the resource, the format of this information
205  /// varies according to QType and QClass difference.
206  ///
209 
210 ///
211 /// DNS_GENERAL_LOOKUP_DATA
212 ///
213 typedef struct {
214  ///
215  /// Number of returned matching RRs.
216  ///
218  ///
219  /// Pointer to the all the returned matching RRs. It's caller responsibility to free
220  /// the allocated memory to hold the returned RRs.
221  ///
224 
225 ///
226 /// EFI_DNS4_COMPLETION_TOKEN
227 ///
228 typedef struct {
229  ///
230  /// This Event will be signaled after the Status field is updated by the EFI DNS
231  /// protocol driver. The type of Event must be EFI_NOTIFY_SIGNAL.
232  ///
234  ///
235  /// Will be set to one of the following values:
236  /// EFI_SUCCESS: The host name to address translation completed successfully.
237  /// EFI_NOT_FOUND: No matching Resource Record (RR) is found.
238  /// EFI_TIMEOUT: No DNS server reachable, or RetryCount was exhausted without
239  /// response from all specified DNS servers.
240  /// EFI_DEVICE_ERROR: An unexpected system or network error occurred.
241  /// EFI_NO_MEDIA: There was a media error.
242  ///
244  ///
245  /// Retry number if no response received after RetryInterval. If zero, use the
246  /// parameter configured through Dns.Configure() interface.
247  ///
249  ///
250  /// Minimum interval of retry is 2 second. If the retry interval is less than 2
251  /// seconds, then use the 2 seconds. If zero, use the parameter configured through
252  /// Dns.Configure() interface.
254  ///
255  /// DNSv4 completion token data
256  ///
257  union {
258  ///
259  /// When the Token is used for host name to address translation, H2AData is a pointer
260  /// to the DNS_HOST_TO_ADDR_DATA.
261  ///
263  ///
264  /// When the Token is used for host address to host name translation, A2HData is a
265  /// pointer to the DNS_ADDR_TO_HOST_DATA.
266  ///
268  ///
269  /// When the Token is used for a general lookup function, GLookupDATA is a pointer to
270  /// the DNS_GENERAL_LOOKUP_DATA.
271  ///
273  } RspData;
275 
276 /**
277  Retrieve mode data of this DNS instance.
278 
279  This function is used to retrieve DNS mode data for this DNS instance.
280 
281  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
282  @param[out] DnsModeData Point to the mode data.
283 
284  @retval EFI_SUCCESS The operation completed successfully.
285  @retval EFI_NOT_STARTED When DnsConfigData is queried, no configuration data
286  is available because this instance has not been
287  configured.
288  @retval EFI_INVALID_PARAMETER This is NULL or DnsModeData is NULL.
289  @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
290 **/
291 typedef
294  IN EFI_DNS4_PROTOCOL *This,
295  OUT EFI_DNS4_MODE_DATA *DnsModeData
296  );
297 
298 /**
299  Configure this DNS instance.
300 
301  This function is used to configure DNS mode data for this DNS instance.
302 
303  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
304  @param[in] DnsConfigData Point to the Configuration data.
305 
306  @retval EFI_SUCCESS The operation completed successfully.
307  @retval EFI_UNSUPPORTED The designated protocol is not supported.
308  @retval EFI_INVALID_PARAMETER This is NULL.
309  The StationIp address provided in DnsConfigData is not a
310  valid unicast.
311  DnsServerList is NULL while DnsServerListCount
312  is not ZERO.
313  DnsServerListCount is ZERO while DnsServerList
314  is not NULL
315  @retval EFI_OUT_OF_RESOURCES The DNS instance data or required space could not be
316  allocated.
317  @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The
318  EFI DNSv4 Protocol instance is not configured.
319  @retval EFI_ALREADY_STARTED Second call to Configure() with DnsConfigData. To
320  reconfigure the instance the caller must call Configure()
321  with NULL first to return driver to unconfigured state.
322 **/
323 typedef
326  IN EFI_DNS4_PROTOCOL *This,
327  IN EFI_DNS4_CONFIG_DATA *DnsConfigData
328  );
329 
330 /**
331  Host name to host address translation.
332 
333  The HostNameToIp () function is used to translate the host name to host IP address. A
334  type A query is used to get the one or more IP addresses for this host.
335 
336  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
337  @param[in] HostName Host name.
338  @param[in] Token Point to the completion token to translate host name
339  to host address.
340 
341  @retval EFI_SUCCESS The operation completed successfully.
342  @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
343  This is NULL.
344  Token is NULL.
345  Token.Event is NULL.
346  HostName is NULL. HostName string is unsupported format.
347  @retval EFI_NO_MAPPING There's no source address is available for use.
348  @retval EFI_NOT_STARTED This instance has not been started.
349 **/
350 typedef
353  IN EFI_DNS4_PROTOCOL *This,
354  IN CHAR16 *HostName,
356  );
357 
358 /**
359  IPv4 address to host name translation also known as Reverse DNS lookup.
360 
361  The IpToHostName() function is used to translate the host address to host name. A type PTR
362  query is used to get the primary name of the host. Support of this function is optional.
363 
364  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
365  @param[in] IpAddress Ip Address.
366  @param[in] Token Point to the completion token to translate host
367  address to host name.
368 
369  @retval EFI_SUCCESS The operation completed successfully.
370  @retval EFI_UNSUPPORTED This function is not supported.
371  @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
372  This is NULL.
373  Token is NULL.
374  Token.Event is NULL.
375  IpAddress is not valid IP address .
376  @retval EFI_NO_MAPPING There's no source address is available for use.
377  @retval EFI_ALREADY_STARTED This Token is being used in another DNS session.
378  @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
379 **/
380 typedef
383  IN EFI_DNS4_PROTOCOL *This,
384  IN EFI_IPv4_ADDRESS IpAddress,
386  );
387 
388 /**
389  Retrieve arbitrary information from the DNS server.
390 
391  This GeneralLookup() function retrieves arbitrary information from the DNS. The caller
392  supplies a QNAME, QTYPE, and QCLASS, and all of the matching RRs are returned. All
393  RR content (e.g., TTL) was returned. The caller need parse the returned RR to get
394  required information. The function is optional.
395 
396  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
397  @param[in] QName Pointer to Query Name.
398  @param[in] QType Query Type.
399  @param[in] QClass Query Name.
400  @param[in] Token Point to the completion token to retrieve arbitrary
401  information.
402 
403  @retval EFI_SUCCESS The operation completed successfully.
404  @retval EFI_UNSUPPORTED This function is not supported. Or the requested
405  QType is not supported
406  @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
407  This is NULL.
408  Token is NULL.
409  Token.Event is NULL.
410  QName is NULL.
411  @retval EFI_NO_MAPPING There's no source address is available for use.
412  @retval EFI_ALREADY_STARTED This Token is being used in another DNS session.
413  @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
414 **/
415 typedef
418  IN EFI_DNS4_PROTOCOL *This,
419  IN CHAR8 *QName,
420  IN UINT16 QType,
421  IN UINT16 QClass,
423  );
424 
425 /**
426  This function is to update the DNS Cache.
427 
428  The UpdateDnsCache() function is used to add/delete/modify DNS cache entry. DNS cache
429  can be normally dynamically updated after the DNS resolve succeeds. This function
430  provided capability to manually add/delete/modify the DNS cache.
431 
432  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
433  @param[in] DeleteFlag If FALSE, this function is to add one entry to the
434  DNS Cahce. If TRUE, this function will delete
435  matching DNS Cache entry.
436  @param[in] Override If TRUE, the maching DNS cache entry will be
437  overwritten with the supplied parameter. If FALSE,
438  EFI_ACCESS_DENIED will be returned if the entry to
439  be added is already existed.
440  @param[in] DnsCacheEntry Pointer to DNS Cache entry.
441 
442  @retval EFI_SUCCESS The operation completed successfully.
443  @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
444  This is NULL.
445  DnsCacheEntry.HostName is NULL.
446  DnsCacheEntry.IpAddress is NULL.
447  DnsCacheEntry.Timeout is zero.
448  @retval EFI_ACCESS_DENIED The DNS cache entry already exists and Override is
449  not TRUE.
450 **/
451 typedef
454  IN EFI_DNS4_PROTOCOL *This,
455  IN BOOLEAN DeleteFlag,
456  IN BOOLEAN Override,
457  IN EFI_DNS4_CACHE_ENTRY DnsCacheEntry
458  );
459 
460 /**
461  Polls for incoming data packets and processes outgoing data packets.
462 
463  The Poll() function can be used by network drivers and applications to increase the
464  rate that data packets are moved between the communications device and the transmit
465  and receive queues.
466  In some systems, the periodic timer event in the managed network driver may not poll
467  the underlying communications device fast enough to transmit and/or receive all data
468  packets without missing incoming packets or dropping outgoing packets. Drivers and
469  applications that are experiencing packet loss should try calling the Poll()
470  function more often.
471 
472  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
473 
474  @retval EFI_SUCCESS Incoming or outgoing data was processed.
475  @retval EFI_NOT_STARTED This EFI DNS Protocol instance has not been started.
476  @retval EFI_INVALID_PARAMETER This is NULL.
477  @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
478  @retval EFI_TIMEOUT Data was dropped out of the transmit and/or receive
479  queue. Consider increasing the polling rate.
480 **/
481 typedef
484  IN EFI_DNS4_PROTOCOL *This
485  );
486 
487 /**
488  Abort an asynchronous DNS operation, including translation between IP and Host, and
489  general look up behavior.
490 
491  The Cancel() function is used to abort a pending resolution request. After calling
492  this function, Token.Status will be set to EFI_ABORTED and then Token.Event will be
493  signaled. If the token is not in one of the queues, which usually means that the
494  asynchronous operation has completed, this function will not signal the token and
495  EFI_NOT_FOUND is returned.
496 
497  @param[in] This Pointer to EFI_DNS4_PROTOCOL instance.
498  @param[in] Token Pointer to a token that has been issued by
499  EFI_DNS4_PROTOCOL.HostNameToIp (),
500  EFI_DNS4_PROTOCOL.IpToHostName() or
501  EFI_DNS4_PROTOCOL.GeneralLookup().
502  If NULL, all pending tokens are aborted.
503 
504  @retval EFI_SUCCESS Incoming or outgoing data was processed.
505  @retval EFI_NOT_STARTED This EFI DNS4 Protocol instance has not been started.
506  @retval EFI_INVALID_PARAMETER This is NULL.
507  @retval EFI_NOT_FOUND When Token is not NULL, and the asynchronous DNS
508  operation was not found in the transmit queue. It
509  was either completed or was not issued by
510  HostNameToIp(), IpToHostName() or GeneralLookup().
511 **/
512 typedef
515  IN EFI_DNS4_PROTOCOL *This,
517  );
518 
519 ///
520 /// The EFI_DNS4_Protocol provides the function to get the host name and address
521 /// mapping, also provides pass through interface to retrieve arbitrary information
522 /// from DNS.
523 ///
533 };
534 
537 
538 #endif
UINTN RRCount
Number of returned matching RRs.
Definition: Dns4.h:217
DNS_ADDR_TO_HOST_DATA.
Definition: Dns4.h:169
DNS_HOST_TO_ADDR_DATA * H2AData
When the Token is used for host name to address translation, H2AData is a pointer to the DNS_HOST_TO_...
Definition: Dns4.h:262
UINT16 QClass
The CLASS code of this RR.
Definition: Dns4.h:192
EFI_GUID gEfiDns4ProtocolGuid
DNS_GENERAL_LOOKUP_DATA.
Definition: Dns4.h:213
BOOLEAN UseDefaultSetting
Set to TRUE to use the default IP address/subnet mask and default routing table.
Definition: Dns4.h:60
EFI_IPv4_ADDRESS * DnsServerList
Pointer to DNS server list containing DnsServerListCount entries or NULL if DnsServerListCountis 0.
Definition: Dns4.h:56
EFI_GUID gEfiDns4ServiceBindingProtocolGuid
EFI_IPv4_ADDRESS * IpList
Pointer to the all the returned IP addresses.
Definition: Dns4.h:163
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
EFI_DNS4_GET_MODE_DATA GetModeData
Definition: Dns4.h:525
VOID * EFI_EVENT
Handle to an event structure.
Definition: UefiBaseType.h:39
CHAR8 * QName
The Owner name.
Definition: Dns4.h:184
unsigned char BOOLEAN
unsigned int UINT32
Definition: ProcessorBind.h:98
EFI_STATUS(EFIAPI * EFI_DNS4_HOST_NAME_TO_IP)(IN EFI_DNS4_PROTOCOL *This, IN CHAR16 *HostName, IN EFI_DNS4_COMPLETION_TOKEN *Token)
Host name to host address translation.
Definition: Dns4.h:352
unsigned short CHAR16
EFI_IPv4_ADDRESS SubnetMask
If UseDefaultSetting is FALSE indicates the subnet mask to use.
Definition: Dns4.h:81
EFI_IPv4_ADDRESS StationIp
If UseDefaultSetting is FALSE indicates the station address to use.
Definition: Dns4.h:77
EFI_DNS4_CONFIG_DATA.
Definition: Dns4.h:35
unsigned char UINT8
EFI_DNS4_HOST_NAME_TO_IP HostNameToIp
Definition: Dns4.h:527
EFI_STATUS(EFIAPI * EFI_DNS4_CONFIGURE)(IN EFI_DNS4_PROTOCOL *This, IN EFI_DNS4_CONFIG_DATA *DnsConfigData)
Configure this DNS instance.
Definition: Dns4.h:325
UINT32 RetryInterval
Minimum interval of retry is 2 second.
Definition: Dns4.h:253
#define OUT
Definition: mlx_utils.h:29
EFI_DNS4_CACHE_ENTRY * DnsCacheList
Pointer to a buffer containing DnsCacheCount DNS Cache entry structures.
Definition: Dns4.h:149
EFI_DNS4_MODE_DATA.
Definition: Dns4.h:122
EFI_DNS4_COMPLETION_TOKEN.
Definition: Dns4.h:228
FILE_LICENCE(BSD2_PATENT)
EFI_DNS4_CACHE_ENTRY.
Definition: Dns4.h:100
UINT32 IpCount
Number of the returned IP addresses.
Definition: Dns4.h:159
EFI_DNS4_GENERAL_LOOKUP GeneralLookUp
Definition: Dns4.h:529
4-byte buffer.
Definition: Base.h:225
EFI_DNS4_IP_TO_HOST_NAME IpToHostName
Definition: Dns4.h:528
DNS_HOST_TO_ADDR_DATA.
Definition: Dns4.h:155
UINT32 DnsServerCount
Number of configured DNS server.
Definition: Dns4.h:131
unsigned short UINT16
EFI_DNS4_POLL Poll
Definition: Dns4.h:531
#define EFIAPI
EFI_STATUS(EFIAPI * EFI_DNS4_UPDATE_DNS_CACHE)(IN EFI_DNS4_PROTOCOL *This, IN BOOLEAN DeleteFlag, IN BOOLEAN Override, IN EFI_DNS4_CACHE_ENTRY DnsCacheEntry)
This function is to update the DNS Cache.
Definition: Dns4.h:453
UINTN DnsServerListCount
Count of the DNS servers.
Definition: Dns4.h:44
UINT32 TTL
32 bit integer which specify the time interval that the resource record may be cached before the sour...
Definition: Dns4.h:198
UINT64 UINTN
Unsigned value of native width.
CHAR8 * RData
A string of octets that describe the resource, the format of this information varies according to QTy...
Definition: Dns4.h:207
EFI_STATUS(EFIAPI * EFI_DNS4_GET_MODE_DATA)(IN EFI_DNS4_PROTOCOL *This, OUT EFI_DNS4_MODE_DATA *DnsModeData)
Retrieve mode data of this DNS instance.
Definition: Dns4.h:293
EFI_STATUS(EFIAPI * EFI_DNS4_POLL)(IN EFI_DNS4_PROTOCOL *This)
Polls for incoming data packets and processes outgoing data packets.
Definition: Dns4.h:483
DNS_ADDR_TO_HOST_DATA * A2HData
When the Token is used for host address to host name translation, A2HData is a pointer to the DNS_ADD...
Definition: Dns4.h:267
#define IN
Definition: mlx_utils.h:28
EFI_STATUS(EFIAPI * EFI_DNS4_CANCEL)(IN EFI_DNS4_PROTOCOL *This, IN EFI_DNS4_COMPLETION_TOKEN *Token)
Abort an asynchronous DNS operation, including translation between IP and Host, and general look up b...
Definition: Dns4.h:514
The EFI_DNS4_Protocol provides the function to get the host name and address mapping,...
Definition: Dns4.h:524
EFI_STATUS(EFIAPI * EFI_DNS4_GENERAL_LOOKUP)(IN EFI_DNS4_PROTOCOL *This, IN CHAR8 *QName, IN UINT16 QType, IN UINT16 QClass, IN EFI_DNS4_COMPLETION_TOKEN *Token)
Retrieve arbitrary information from the DNS server.
Definition: Dns4.h:417
EFI_STATUS(EFIAPI * EFI_DNS4_IP_TO_HOST_NAME)(IN EFI_DNS4_PROTOCOL *This, IN EFI_IPv4_ADDRESS IpAddress, IN EFI_DNS4_COMPLETION_TOKEN *Token)
IPv4 address to host name translation also known as Reverse DNS lookup.
Definition: Dns4.h:382
UINT16 DataLength
16 big integer which specify the length of RData.
Definition: Dns4.h:202
EFI_EVENT Event
This Event will be signaled after the Status field is updated by the EFI DNS protocol driver.
Definition: Dns4.h:233
char CHAR8
UINT32 DnsCacheCount
Number of DNS Cache entries.
Definition: Dns4.h:143
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
Definition: UefiBaseType.h:31
BOOLEAN EnableDnsCache
If TRUE, enable DNS cache function for this DNS instance.
Definition: Dns4.h:65
UINT32 RetryCount
Retry number if no response received after RetryInterval.
Definition: Dns4.h:89
UINT32 RetryInterval
Minimum interval of retry is 2 second.
Definition: Dns4.h:94
UINT32 Timeout
Time in second unit that this entry will remain in DNS cache.
Definition: Dns4.h:116
EFI_STATUS Status
Will be set to one of the following values: EFI_SUCCESS: The host name to address translation complet...
Definition: Dns4.h:243
EFI_DNS4_CONFIG_DATA DnsConfigData
The configuration data of this instance.
Definition: Dns4.h:126
EFI_DNS4_CANCEL Cancel
Definition: Dns4.h:532
UINT32 RetryCount
Retry number if no response received after RetryInterval.
Definition: Dns4.h:248
CHAR16 * HostName
Pointer to the primary name for this host address.
Definition: Dns4.h:174
DNS_RESOURCE_RECORD * RRList
Pointer to the all the returned matching RRs.
Definition: Dns4.h:222
EFI_DNS4_CONFIGURE Configure
Definition: Dns4.h:526
UINT8 Protocol
Use the protocol number defined in "Links to UEFI-Related Documents"(http://uefi.org/uefi) under the ...
Definition: Dns4.h:73
EFI_IPv4_ADDRESS * IpAddress
IP address of this host.
Definition: Dns4.h:108
DNS_GENERAL_LOOKUP_DATA * GLookupData
When the Token is used for a general lookup function, GLookupDATA is a pointer to the DNS_GENERAL_LOO...
Definition: Dns4.h:272
UINT16 LocalPort
Local port number.
Definition: Dns4.h:85
UINT16 QType
The Type Code of this RR.
Definition: Dns4.h:188
CHAR16 * HostName
Host name.
Definition: Dns4.h:104
EFI_DNS4_UPDATE_DNS_CACHE UpdateDnsCache
Definition: Dns4.h:530
DNS_RESOURCE_RECORD.
Definition: Dns4.h:180
EFI_IPv4_ADDRESS * DnsServerList
Pointer to common list of addresses of all configured DNS server used by EFI_DNS4_PROTOCOL instances.
Definition: Dns4.h:139