NET_PACKET_FILTER_FLAGS enumeration (netadapter.h)

The NET_PACKET_FILTER_FLAGS enumeration describes a network adapter's receive packet filters.

Syntax

typedef enum _NET_PACKET_FILTER_FLAGS {
  NetPacketFilterFlagDirected = 0x00000001,
  NetPacketFilterFlagMulticast = 0x00000002,
  NetPacketFilterFlagAllMulticast = 0x00000004,
  NetPacketFilterFlagBroadcast = 0x00000008,
  NetPacketFilterFlagPromiscuous = 0x00000020
} NET_PACKET_FILTER_FLAGS;

Constants

 
NetPacketFilterFlagDirected
Value: 0x00000001
The network adapter can filter directed packets. Directed packets contain a destination address equal to the MAC address of the NIC.
NetPacketFilterFlagMulticast
Value: 0x00000002
The network adapter can filter multicast packets whose destination MAC address matches an address in the multicast address list.
NetPacketFilterFlagAllMulticast
Value: 0x00000004
The network adapter can filter all multicast address packets, not just the ones enumerated in the multicast address list.
NetPacketFilterFlagBroadcast
Value: 0x00000008
The network adapter can filter broadcast packets.
NetPacketFilterFlagPromiscuous
Value: 0x00000020
The network adapter can filter all packets regardless of whether VLAN filtering is enabled or not and whether the VLAN identifier matches or not.

Remarks

The driver uses the NET_PACKET_FILTER_FLAGS enumeration to specify the net adapter's receive packet filters in the NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES structure.

An initialized NET_ADAPTER_RECEIVE_FILTER_CAPABILITIES structure is an input to NetAdapterSetReceiveFilterCapabilities.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
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

NetAdapterSetReceiveFilterCapabilities

NetReceiveFilterGetPacketFilter