Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
NetPacketFilterFlagDirectedValue: 0x00000001 The network adapter can filter directed packets. Directed packets contain a destination address equal to the MAC address of the NIC. |
NetPacketFilterFlagMulticastValue: 0x00000002 The network adapter can filter multicast packets whose destination MAC address matches an address in the multicast address list. |
NetPacketFilterFlagAllMulticastValue: 0x00000004 The network adapter can filter all multicast address packets, not just the ones enumerated in the multicast address list. |
NetPacketFilterFlagBroadcastValue: 0x00000008 The network adapter can filter broadcast packets. |
NetPacketFilterFlagPromiscuousValue: 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.
Important
If the driver doesn't report support for all of the packet filters expected by an upper layer, NetAdapterCx will fail the OID_GEN_CURRENT_PACKET_FILTER request, which causes the upper layer to fail to bind to your driver. For reliable binding, your driver must report support for all packet filter types.
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