Keeping Statistics (NDIS 5.1)

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

Every miniport driver network interface card (NIC) driver should maintain both the mandatory general statistics and the media-specific statistics object identifiers (OIDs) for their particular media. For more information about how miniport drivers handle queries and sets to OIDs, see Obtaining and Setting Miniport Driver Information and NDIS Support for WMI.

General Mandatory Statistics OIDs for Connectionless Miniport Drivers (NDIS 5.1)

The general mandatory statistics OIDs that apply to all connectionless miniport drivers include the following:

  • OID_GEN_XMIT_OK

  • OID_GEN_RCV_OK

  • OID_GEN_XMIT_ERROR

  • OID_GEN_RCV_ERROR

  • OID_GEN_RCV_NO_BUFFER

The MiniportQueryInformationfunction must return the corresponding value it has accumulated for each of these statistics when it receives a request with one of these OIDs.

General Mandatory Statistics OIDs for Connection-Oriented Miniport Drivers (NDIS 5.1)

The general mandatory statistics OIDs that apply to all connection-oriented miniport drivers include the following:

  • OID_GEN_CO_XMIT_PDUS_OK

  • OID_GEN_CO_RCV_PDUS_OK

  • OID_GEN_CO_XMIT_PDUS_ERROR

  • OID_GEN_CO_RCV_PDUS_ERROR

  • OID_GEN_CO_RCV_PDUS_NO_BUFFER

The MiniportCoRequestfunction must return the corresponding value it has accumulated for each of these statistics when it receives a request with one of these OIDs.

 

 

Send comments about this topic to Microsoft