Upravit

Sdílet prostřednictvím


Clearing a Receive Filter on a Virtual Port

To clear a receive filter from a virtual port (VPort) on the NIC switch, an overlying driver issues an object identifier (OID) set request of OID_RECEIVE_FILTER_CLEAR_FILTER. The InformationBuffer member of the NDIS_OID_REQUEST structure contains a pointer to an NDIS_RECEIVE_FILTER_CLEAR_PARAMETERS structure.

Before the overlying driver issues the OID_RECEIVE_FILTER_CLEAR_FILTER request, it must initialize the NDIS_RECEIVE_FILTER_CLEAR_PARAMETERS structure and set the members in the following way:

An overlying driver must clear all of the filters that it set on a VPort before it frees the VPort. An overlying driver must also clear all of the filters that it set on the default VPort before it closes its binding to or detached from the network adapter.