NDIS_STATUS
EthFilterAdjust(
IN PETH_FILTER Filter,
IN NDIS_HANDLE NdisFilterHandle,
IN PNDIS_REQUEST NdisRequest,
IN UINT FilterClasses,
IN BOOLEAN Set
);
EthFilterAdjust is called by a NIC driver to adjust an Ethernet filter library database.
EthFilterAdjust can return the following status codes:
NDIS_STATUS_PENDING
NDIS_STATUS_RESET_IN_PROGRESS
NDIS_STATUS_SUCCESS
EthFilterAdjust calls a NIC driver’s function if no binding has used a particular filter class and at least one binding starts using that class. The function also calls an action function for the reverse situation. If the NIC driver action function returns a status code that indicates neither pending nor success, EthFilterAdjust restores the filter library database to its original state.
The NIC driver must be holding the filter library spinlock when it calls this function.
Callers of EthFilterAdjust run at IRQL DISPATCH_LEVEL.