TianoCore EDK2 master
|
#include "Snp.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | PxeIp2Mac (IN SNP_DRIVER *Snp, IN BOOLEAN IPv6, IN EFI_IP_ADDRESS *IP, IN OUT EFI_MAC_ADDRESS *MAC) |
EFI_STATUS EFIAPI | SnpUndi32McastIpToMac (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN IPv6, IN EFI_IP_ADDRESS *IP, OUT EFI_MAC_ADDRESS *MAC) |
Implementation of converting an multicast IP address to multicast HW MAC address.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Mcast_ip_to_mac.c.
EFI_STATUS PxeIp2Mac | ( | IN SNP_DRIVER * | Snp, |
IN BOOLEAN | IPv6, | ||
IN EFI_IP_ADDRESS * | IP, | ||
IN OUT EFI_MAC_ADDRESS * | MAC | ||
) |
Call undi to convert an multicast IP address to a MAC address.
Snp | Pointer to snp driver structure. |
IPv6 | Flag to indicate if this is an ipv6 address. |
IP | Multicast IP address. |
MAC | Pointer to hold the return MAC address. |
EFI_SUCCESS | The multicast IP address was mapped to the multicast HW MAC address. |
EFI_INVALID_PARAMETER | Invalid UNDI command. |
EFI_UNSUPPORTED | Command is not supported by UNDI. |
EFI_DEVICE_ERROR | Fail to execute UNDI command. |
Definition at line 28 of file Mcast_ip_to_mac.c.
EFI_STATUS EFIAPI SnpUndi32McastIpToMac | ( | IN EFI_SIMPLE_NETWORK_PROTOCOL * | This, |
IN BOOLEAN | IPv6, | ||
IN EFI_IP_ADDRESS * | IP, | ||
OUT EFI_MAC_ADDRESS * | MAC | ||
) |
Converts a multicast IP address to a multicast HW MAC address.
This function converts a multicast IP address to a multicast HW MAC address for all packet transactions. If the mapping is accepted, then EFI_SUCCESS will be returned.
This | A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance. |
IPv6 | Set to TRUE if the multicast IP address is IPv6 [RFC 2460]. Set to FALSE if the multicast IP address is IPv4 [RFC 791]. |
IP | The multicast IP address that is to be converted to a multicast HW MAC address. |
MAC | The multicast HW MAC address that is to be generated from IP. |
EFI_SUCCESS | The multicast IP address was mapped to the multicast HW MAC address. |
EFI_NOT_STARTED | The Simple Network Protocol interface has not been started by calling Start(). |
EFI_INVALID_PARAMETER | IP is NULL. |
EFI_INVALID_PARAMETER | MAC is NULL. |
EFI_INVALID_PARAMETER | IP does not point to a valid IPv4 or IPv6 multicast address. |
EFI_DEVICE_ERROR | The Simple Network Protocol interface has not been initialized by calling Initialize(). |
EFI_UNSUPPORTED | IPv6 is TRUE and the implementation does not support IPv6 multicast to MAC address conversion. |
Definition at line 127 of file Mcast_ip_to_mac.c.