|
EFI_STATUS EFIAPI | ArpConfigure (IN EFI_ARP_PROTOCOL *This, IN EFI_ARP_CONFIG_DATA *ConfigData OPTIONAL) |
|
EFI_STATUS EFIAPI | ArpAdd (IN EFI_ARP_PROTOCOL *This, IN BOOLEAN DenyFlag, IN VOID *TargetSwAddress OPTIONAL, IN VOID *TargetHwAddress OPTIONAL, IN UINT32 TimeoutValue, IN BOOLEAN Overwrite) |
|
EFI_STATUS EFIAPI | ArpFind (IN EFI_ARP_PROTOCOL *This, IN BOOLEAN BySwAddress, IN VOID *AddressBuffer OPTIONAL, OUT UINT32 *EntryLength OPTIONAL, OUT UINT32 *EntryCount OPTIONAL, OUT EFI_ARP_FIND_DATA **Entries OPTIONAL, IN BOOLEAN Refresh) |
|
EFI_STATUS EFIAPI | ArpDelete (IN EFI_ARP_PROTOCOL *This, IN BOOLEAN BySwAddress, IN VOID *AddressBuffer OPTIONAL) |
|
EFI_STATUS EFIAPI | ArpFlush (IN EFI_ARP_PROTOCOL *This) |
|
EFI_STATUS EFIAPI | ArpRequest (IN EFI_ARP_PROTOCOL *This, IN VOID *TargetSwAddress OPTIONAL, IN EFI_EVENT ResolvedEvent OPTIONAL, OUT VOID *TargetHwAddress) |
|
EFI_STATUS EFIAPI | ArpCancel (IN EFI_ARP_PROTOCOL *This, IN VOID *TargetSwAddress OPTIONAL, IN EFI_EVENT ResolvedEvent OPTIONAL) |
|
Implementation of EFI Address Resolution Protocol (ARP) Protocol interface functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ArpMain.c.
This function aborts the previous ARP request (identified by This, TargetSwAddress and ResolvedEvent) that is issued by EFI_ARP_PROTOCOL.Request().
If the request is in the internal ARP request queue, the request is aborted immediately and its ResolvedEvent is signaled. Only an asynchronous address request needs to be canceled. If TargetSwAddress and ResolvedEvent are both NULL, all the pending asynchronous requests that have been issued by This instance will be cancelled and their corresponding events will be signaled.
- Parameters
-
This | Pointer to the EFI_ARP_PROTOCOL instance. |
TargetSwAddress | Pointer to the protocol address in previous request session. |
ResolvedEvent | Pointer to the event that is used as the notification event in previous request session. |
- Return values
-
EFI_SUCCESS | The pending request session(s) is/are aborted and corresponding event(s) is/are signaled. |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. TargetSwAddress is not NULL and ResolvedEvent is NULL. TargetSwAddress is NULL and ResolvedEvent is not NULL. |
EFI_NOT_STARTED | The ARP driver instance has not been configured. |
EFI_NOT_FOUND | The request is not issued by EFI_ARP_PROTOCOL.Request(). |
Definition at line 698 of file ArpMain.c.
This function is used to assign a station address to the ARP cache for this instance of the ARP driver.
Each ARP instance has one station address. The EFI_ARP_PROTOCOL driver will respond to ARP requests that match this registered station address. A call to this function with the ConfigData field set to NULL will reset this ARP instance.
Once a protocol type and station address have been assigned to this ARP instance, all the following ARP functions will use this information. Attempting to change the protocol type or station address to a configured ARP instance will result in errors.
- Parameters
-
This | Pointer to the EFI_ARP_PROTOCOL instance. |
ConfigData | Pointer to the EFI_ARP_CONFIG_DATA structure. |
- Return values
-
EFI_SUCCESS | The new station address was successfully registered. |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. SwAddressLength is zero when ConfigData is not NULL. StationAddress is NULL when ConfigData is not NULL. |
EFI_ACCESS_DENIED | The SwAddressType, SwAddressLength, or StationAddress is different from the one that is already registered. |
EFI_OUT_OF_RESOURCES | Storage for the new StationAddress could not be allocated. |
Definition at line 41 of file ArpMain.c.
This function searches the ARP cache for matching entries and allocates a buffer into which those entries are copied.
The first part of the allocated buffer is EFI_ARP_FIND_DATA, following which are protocol address pairs and hardware address pairs. When finding a specific protocol address (BySwAddress is TRUE and AddressBuffer is not NULL), the ARP cache timeout for the found entry is reset if Refresh is set to TRUE. If the found ARP cache entry is a permanent entry, it is not affected by Refresh.
- Parameters
-
This | Pointer to the EFI_ARP_PROTOCOL instance. |
BySwAddress | Set to TRUE to look for matching software protocol addresses. Set to FALSE to look for matching hardware protocol addresses. |
AddressBuffer | Pointer to address buffer. Set to NULL to match all addresses. |
EntryLength | The size of an entry in the entries buffer. |
EntryCount | The number of ARP cache entries that are found by the specified criteria. |
Entries | Pointer to the buffer that will receive the ARP cache entries. |
Refresh | Set to TRUE to refresh the timeout value of the matching ARP cache entry. |
- Return values
-
EFI_SUCCESS | The requested ARP cache entries were copied into the buffer. |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. Both EntryCount and EntryLength are NULL, when Refresh is FALSE. |
EFI_NOT_FOUND | No matching entries were found. |
EFI_NOT_STARTED | The ARP driver instance has not been configured. |
Definition at line 310 of file ArpMain.c.