TianoCore EDK2 master
Loading...
Searching...
No Matches
SnpMcastIpToMac.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VirtioNetMcastIpToMac (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN IPv6, IN EFI_IP_ADDRESS *Ip, OUT EFI_MAC_ADDRESS *Mac)
 

Detailed Description

Implementation of the SNP.McastIpToMac() function and its private helpers if any.

Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SnpMcastIpToMac.c.

Function Documentation

◆ VirtioNetMcastIpToMac()

EFI_STATUS EFIAPI VirtioNetMcastIpToMac ( 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.

Parameters
ThisThe protocol instance pointer.
IPv6Set to TRUE if the multicast IP address is IPv6 [RFC 2460]. Set to FALSE if the multicast IP address is IPv4 [RFC 791].
IPThe multicast IP address that is to be converted to a multicast HW MAC address.
MACThe multicast HW MAC address that is to be generated from IP.
Return values
EFI_SUCCESSThe multicast IP address was mapped to the multicast HW MAC address.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_BUFFER_TOO_SMALLThe Statistics buffer was too small. The current buffer size needed to hold the statistics is returned in StatisticsSize.
EFI_INVALID_PARAMETEROne or more of the parameters has an unsupported value.
EFI_DEVICE_ERRORThe command could not be sent to the network interface.
EFI_UNSUPPORTEDThis function is not supported by the network interface.

Definition at line 43 of file SnpMcastIpToMac.c.