NetAdapterSetReceiveFilterCapabilities function (netadapter.h)

The NetAdapterSetReceiveFilterCapabilities function sets the receive filtering capabilities of a network adapter.

Syntax

void NetAdapterSetReceiveFilterCapabilities(
  [_In_] NETADAPTER                                    Adapter,
  [_In_] const NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES *Capabilities
);

Parameters

[_In_] Adapter

A handle to a NETADAPTER object the client driver previously created with a call to NetAdapterCreate.

[_In_] Capabilities

A pointer to a driver-allocated and initialized NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES structure that describes the network adapter's receive filtering capabilities.

Return value

None

Remarks

Client drivers typically call this function from within their EvtDevicePrepareHardware callback, but must call this function before calling NetAdapterStart.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)

See also

NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES

EVT_NET_ADAPTER_SET_RECEIVE_FILTER

NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES_INIT

NET_PACKET_FILTER_FLAGS

NetReceiveFilterGetMulticastAddressList

NetReceiveFilterGetMulticastAddressCount