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

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VirtioNetReceiveFilters (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINT32 Enable, IN UINT32 Disable, IN BOOLEAN ResetMCastFilter, IN UINTN MCastFilterCnt OPTIONAL, IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL)
 

Detailed Description

Implementation of the SNP.ReceiveFilters() 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 SnpReceiveFilters.c.

Function Documentation

◆ VirtioNetReceiveFilters()

EFI_STATUS EFIAPI VirtioNetReceiveFilters ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN UINT32  Enable,
IN UINT32  Disable,
IN BOOLEAN  ResetMCastFilter,
IN UINTN MCastFilterCnt  OPTIONAL,
IN EFI_MAC_ADDRESS *MCastFilter  OPTIONAL 
)

Manages the multicast receive filters of a network interface.

Parameters
ThisThe protocol instance pointer.
EnableA bit mask of receive filters to enable on the network interface.
DisableA bit mask of receive filters to disable on the network interface.
ResetMCastFilterSet to TRUE to reset the contents of the multicast receive filters on the network interface to their default values.
McastFilterCntNumber of multicast HW MAC addresses in the new MCastFilter list. This value must be less than or equal to the MCastFilterCnt field of EFI_SIMPLE_NETWORK_MODE. This field is optional if ResetMCastFilter is TRUE.
MCastFilterA pointer to a list of new multicast receive filter HW MAC addresses. This list will replace any existing multicast HW MAC address list. This field is optional if ResetMCastFilter is TRUE.
Return values
EFI_SUCCESSThe multicast receive filter list was updated.
EFI_NOT_STARTEDThe network interface has not been started.
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 50 of file SnpReceiveFilters.c.