|
typedef struct _EFI_DNS4_PROTOCOL | EFI_DNS4_PROTOCOL |
|
typedef EFI_STATUS(EFIAPI * | EFI_DNS4_GET_MODE_DATA) (IN EFI_DNS4_PROTOCOL *This, OUT EFI_DNS4_MODE_DATA *DnsModeData) |
|
typedef EFI_STATUS(EFIAPI * | EFI_DNS4_CONFIGURE) (IN EFI_DNS4_PROTOCOL *This, IN EFI_DNS4_CONFIG_DATA *DnsConfigData) |
|
typedef EFI_STATUS(EFIAPI * | EFI_DNS4_HOST_NAME_TO_IP) (IN EFI_DNS4_PROTOCOL *This, IN CHAR16 *HostName, IN EFI_DNS4_COMPLETION_TOKEN *Token) |
|
typedef 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) |
|
typedef 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) |
|
typedef 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) |
|
typedef EFI_STATUS(EFIAPI * | EFI_DNS4_POLL) (IN EFI_DNS4_PROTOCOL *This) |
|
typedef EFI_STATUS(EFIAPI * | EFI_DNS4_CANCEL) (IN EFI_DNS4_PROTOCOL *This, IN EFI_DNS4_COMPLETION_TOKEN *Token) |
|
This file defines the EFI Domain Name Service Binding Protocol interface. It is split into the following two main sections: DNSv4 Service Binding Protocol (DNSv4SB) DNSv4 Protocol (DNSv4)
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
- Revision Reference:
- This Protocol is introduced in UEFI Specification 2.5
Definition in file Dns4.h.
Abort an asynchronous DNS operation, including translation between IP and Host, and general look up behavior.
The Cancel() function is used to abort a pending resolution request. After calling this function, Token.Status will be set to EFI_ABORTED and then Token.Event will be signaled. If the token is not in one of the queues, which usually means that the asynchronous operation has completed, this function will not signal the token and EFI_NOT_FOUND is returned.
- Parameters
-
[in] | This | Pointer to EFI_DNS4_PROTOCOL instance. |
[in] | Token | Pointer to a token that has been issued by EFI_DNS4_PROTOCOL.HostNameToIp (), EFI_DNS4_PROTOCOL.IpToHostName() or EFI_DNS4_PROTOCOL.GeneralLookup(). If NULL, all pending tokens are aborted. |
- Return values
-
EFI_SUCCESS | Incoming or outgoing data was processed. |
EFI_NOT_STARTED | This EFI DNS4 Protocol instance has not been started. |
EFI_INVALID_PARAMETER | This is NULL. |
EFI_NOT_FOUND | When Token is not NULL, and the asynchronous DNS operation was not found in the transmit queue. It was either completed or was not issued by HostNameToIp(), IpToHostName() or GeneralLookup(). |
Definition at line 511 of file Dns4.h.
Retrieve arbitrary information from the DNS server.
This GeneralLookup() function retrieves arbitrary information from the DNS. The caller supplies a QNAME, QTYPE, and QCLASS, and all of the matching RRs are returned. All RR content (e.g., TTL) was returned. The caller need parse the returned RR to get required information. The function is optional.
- Parameters
-
[in] | This | Pointer to EFI_DNS4_PROTOCOL instance. |
[in] | QName | Pointer to Query Name. |
[in] | QType | Query Type. |
[in] | QClass | Query Name. |
[in] | Token | Point to the completion token to retrieve arbitrary information. |
- Return values
-
EFI_SUCCESS | The operation completed successfully. |
EFI_UNSUPPORTED | This function is not supported. Or the requested QType is not supported |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. Token is NULL. Token.Event is NULL. QName is NULL. |
EFI_NO_MAPPING | There's no source address is available for use. |
EFI_ALREADY_STARTED | This Token is being used in another DNS session. |
EFI_OUT_OF_RESOURCES | Failed to allocate needed resources. |
Definition at line 414 of file Dns4.h.
Polls for incoming data packets and processes outgoing data packets.
The Poll() function can be used by network drivers and applications to increase the rate that data packets are moved between the communications device and the transmit and receive queues. In some systems, the periodic timer event in the managed network driver may not poll the underlying communications device fast enough to transmit and/or receive all data packets without missing incoming packets or dropping outgoing packets. Drivers and applications that are experiencing packet loss should try calling the Poll() function more often.
- Parameters
-
[in] | This | Pointer to EFI_DNS4_PROTOCOL instance. |
- Return values
-
EFI_SUCCESS | Incoming or outgoing data was processed. |
EFI_NOT_STARTED | This EFI DNS Protocol instance has not been started. |
EFI_INVALID_PARAMETER | This is NULL. |
EFI_DEVICE_ERROR | An unexpected system or network error occurred. |
EFI_TIMEOUT | Data was dropped out of the transmit and/or receive queue. Consider increasing the polling rate. |
Definition at line 480 of file Dns4.h.