次の方法で共有


OID_WAN_GET_STATS_INFO

The OID_WAN_GET_STATS_INFO OID requests the miniport driver to return statistics information. A WAN NIC driver is expected to keep statistics and to return these statistics for this OID in an NDIS_WAN_GET_STATS_INFO structure, defined as follows:

typedef struct _NDIS_WAN_GET_STATS_INFO {         IN NDIS_HANDLE NdisLinkHandle;
         OUT ULONG BytesSent;
         OUT ULONG BytesRcvd;
         OUT ULONG FramesSent;
         OUT ULONG FramesRcvd;
         OUT ULONG CRCErrors;
         OUT ULONG TimeoutErrors;
         OUT ULONG AlignmentErrors;
         OUT ULONG SerialOverrunErrors;
         OUT ULONG FramingErrors;
         OUT ULONG BufferOverrunErrors;
         OUT ULONG BytesTransmittedUncompressed;
         OUT ULONG BytesReceivedUncompressed;
         OUT ULONG BytesTransmittedCompressed;
         OUT ULONG BytesReceivedCompressed;
 } NDIS_WAN_GET_STATS_INFO, *PNDIS_WAN_GET_STATS_INFO;

The members of this structure contain the following information:

  • NdisLinkHandle
    Identifies the link. This is the handle that the miniport driver supplied in the initial line-up indication for this link.

  • BytesSent
    Specifies the number of bytes transmitted.

  • BytesRcvd
    Specifies the number of bytes received.

  • FramesSent
    Specifies the number of frames (WAN packets) sent.

  • FramesRcvd
    Specifies the number of frames received.

  • CRCErrors
    Specifies the number of CRC errors encountered.

  • TimeoutErrors
    Specifies the number of time-out errors encountered.

  • AlignmentErrors
    Specifies the number of alignment errors encountered.

  • SerialOverrunErrors
    Specifies the number of serial overruns encountered.

  • FramingErrors
    Specifies the number of framing errors encountered.

  • BufferOverrunErrors
    Specifies the number of buffer overruns encountered.

  • BytesTransmittedUncompressed
    Specifies the number of bytes of uncompressed data transmitted. A miniport driver returns a nonzero value only if it supports compression.

  • BytesReceivedUncompressed
    Specifies the number of bytes of uncompressed data received. A miniport driver returns a nonzero value only if it supports compression.

  • BytesTransmittedCompressed
    Specifies the number of bytes of compressed data transmitted. A miniport driver returns a nonzero value only if it supports compression.

  • BytesReceivedCompressed
    Specifies the number of bytes of compressed data received. A miniport driver returns a nonzero value only if it supports compression.

If the underlying driver or its NIC does not support compression, the driver returns zero for the Bytes..Uncompressed/Compressed members.

 

 

Send comments about this topic to Microsoft