NetReceiveFilterGetPacketFilter function (netadapter.h)

The NetReceiveFilterGetPacketFilter function retrieves the NET_PACKET_FILTER_FLAGS. These flags describe the packet filters that the network adapter supports.

Syntax

NET_PACKET_FILTER_FLAGS NetReceiveFilterGetPacketFilter(
  [_In_] NETRECEIVEFILTER ReceiveFilter
);

Parameters

[_In_] ReceiveFilter

A handle to a NETRECEIVEFILTER object.

Return value

Returns a NET_PACKET_FILTER_FLAGS enumeration.

Remarks

Client drivers typically call NetReceiveFilterGetPacketFilter during their EvtNetAdapterSetReceiveFilter callback to get an updated set of NET_PACKET_FILTER_FLAGS that the NIC must filter.

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

EVT_NET_ADAPTER_SET_RECEIVE_FILTER

NET_PACKET_FILTER_FLAGS

NetReceiveFilterGetMulticastAddressCount

NetReceiveFilterGetMulticastAddressList