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