ETH_QUERY_PACKET_FILTER

UINT
    ETH_QUERY_PACKET_FILTER(
        IN PETH_FILTER  Filter,
        IN NDIS_HANDLE  NdisFilterHandle
        );

ETH_QUERY_PACKET_FILTER is called by the NIC driver to query the Ethernet filter classes for a binding.

Parameters

Filter
Points to a previously created and initialized filter library database.
NdisFilterHandle
Specifies the handle that the filter library associates with the binding filter.

Return Value

ETH_QUERY_PACKET_FILTER returns a value representing the currently enabled filter classes for the binding.

Comments

A NIC driver calls this macro before it alters registers on the network interface card to effect filtering. The timing of the call is important if a binding has altered the multicast address list.

A caller must be holding the database spin lock to use this macro, so the driver is running at IRQL DISPATCH_LEVEL.