NDIS_PD_FILTER_PARAMETERS structure (ndis.h)

This structure holds metadata for a packet filter.

Syntax

typedef struct _NDIS_PD_FILTER_PARAMETERS {
  NDIS_OBJECT_HEADER     Header;
  ULONG                  Flags;
  NDIS_GFP_PROFILE_ID    MatchProfileId;
  ULONG                  Priority;
  NDIS_PD_COUNTER_HANDLE CounterHandle;
  NDIS_PD_QUEUE          *TargetReceiveQueue;
  ULONG64                RxFilterContext;
  PUCHAR                 HeaderGroupMatchArray;
  ULONG                  HeaderGroupMatchArrayNumElements;
  ULONG                  HeaderGroupMatchArrayElementSize;
  ULONG                  HeaderGroupMatchArrayTotalSize;
} NDIS_PD_FILTER_PARAMETERS;

Members

Header

The NDIS_OBJECT_HEADER structure for the NDIS_PD_FILTER_PARAMETERS structure. Set the members of this structure as follows:

  • Type = NDIS_OBJECT_TYPE_DEFAULT
  • Revision = NDIS_PD_FILTER_PARAMETERS_REVISION_1
  • Size = NDIS_SIZEOF_PD_FILTER_PARAMETERS_REVISION_1

Flags

This member is reserved and must be set to 0 by the client. It is ignored by the provider.

MatchProfileId

This value is used to determine if the HeaderGroupMatchArray members describe an NDIS_GFP_HEADER_GROUP_EXACT_MATCH array or a NDIS_GFP_HEADER_GROUP_WILDCARD_MATCH array.

Priority

The priority of this filter.

CounterHandle

A handle to a counter.

TargetReceiveQueue

The target receive queue to filter.

RxFilterContext

The context for the receive filter.

HeaderGroupMatchArray

An array of either NDIS_GFP_HEADER_GROUP_EXACT_MATCH or NDIS_GFP_HEADER_GROUP_WILDCARD_MATCH elements as determined by the MatchProfileId member.

HeaderGroupMatchArrayNumElements

The number of elements for the HeaderGroupMatchArray.

HeaderGroupMatchArrayElementSize

The size of each element for the HeaderGroupMatchArray.

HeaderGroupMatchArrayTotalSize

The total size of the HeaderGroupMatchArray.

Remarks

This structure must be aligned on an 8-byte boundary.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header ndis.h

See also

NDIS_OBJECT_HEADER