NET_ADAPTER_STATISTICS_FLAGS Enumeration

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

Specifies statistics that an adapter supports.

Syntax

typedef enum _NET_ADAPTER_STATISTICS_FLAGS {
  NET_ADAPTER_STATISTICS_NO_FLAGS,
  NET_ADAPTER_STATISTICS_XMIT_OK,
  NET_ADAPTER_STATISTICS_RCV_OK,
  NET_ADAPTER_STATISTICS_XMIT_ERROR,
  NET_ADAPTER_STATISTICS_RCV_ERROR,
  NET_ADAPTER_STATISTICS_RCV_NO_BUFFER,
  NET_ADAPTER_STATISTICS_DIRECTED_BYTES_XMIT,
  NET_ADAPTER_STATISTICS_DIRECTED_FRAMES_XMIT,
  NET_ADAPTER_STATISTICS_MULTICAST_BYTES_XMIT,
  NET_ADAPTER_STATISTICS_MULTICAST_FRAMES_XMIT,
  NET_ADAPTER_STATISTICS_BROADCAST_BYTES_XMIT,
  NET_ADAPTER_STATISTICS_BROADCAST_FRAMES_XMIT,
  NET_ADAPTER_STATISTICS_DIRECTED_BYTES_RCV,
  NET_ADAPTER_STATISTICS_DIRECTED_FRAMES_RCV,
  NET_ADAPTER_STATISTICS_MULTICAST_BYTES_RCV,
  NET_ADAPTER_STATISTICS_MULTICAST_FRAMES_RCV,
  NET_ADAPTER_STATISTICS_BROADCAST_BYTES_RCV,
  NET_ADAPTER_STATISTICS_BROADCAST_FRAMES_RCV,
  NET_ADAPTER_STATISTICS_RCV_CRC_ERROR,
  NET_ADAPTER_STATISTICS_TRANSMIT_QUEUE_LENGTH,
  NET_ADAPTER_STATISTICS_BYTES_RCV,
  NET_ADAPTER_STATISTICS_BYTES_XMIT,
  NET_ADAPTER_STATISTICS_RCV_DISCARDS,
  NET_ADAPTER_STATISTICS_GEN_STATISTICS,
  NET_ADAPTER_STATISTICS_XMIT_DISCARDS
} NET_ADAPTER_STATISTICS_FLAGS;

Constants

NET_ADAPTER_STATISTICS_NO_FLAGS No flags are set.
NET_ADAPTER_STATISTICS_XMIT_OK The client can handle [OID_GEN_XMIT_OK](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-xmit-ok).
NET_ADAPTER_STATISTICS_RCV_OK The client can handle [OID_GEN_RCV_OK](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-rcv-ok).
NET_ADAPTER_STATISTICS_XMIT_ERROR The data in the **ifOutErrors** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_RCV_ERROR The data in the **ifInErrors** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_RCV_NO_BUFFER The client can handle [OID_GEN_RCV_NO_BUFFER](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-rcv-no-buffer).
NET_ADAPTER_STATISTICS_DIRECTED_BYTES_XMIT The data in the **ifHCOutUcastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_DIRECTED_FRAMES_XMIT The data in the **ifHCOutUcastPkts** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_MULTICAST_BYTES_XMIT The data in the **ifHCOutMulticastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_MULTICAST_FRAMES_XMIT The data in the **ifHCOutMulticastPkts** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_BROADCAST_BYTES_XMIT The data in the **ifHCOutBroadcastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_BROADCAST_FRAMES_XMIT The data in the **ifHCOutBroadcastPkts** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_DIRECTED_BYTES_RCV The data in the **ifHCInUcastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_DIRECTED_FRAMES_RCV The data in the **ifHCInUcastPkts** member is valid.
NET_ADAPTER_STATISTICS_MULTICAST_BYTES_RCV The data in the **ifHCInMulticastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_MULTICAST_FRAMES_RCV The data in the **ifHCInMulticastPkts** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_BROADCAST_BYTES_RCV The data in the **ifHCInBroadcastOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_BROADCAST_FRAMES_RCV The data in the **ifHCInBroadcastPkts** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_RCV_CRC_ERROR The client can handle [OID_GEN_RCV_CRC_ERROR](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-rcv-crc-error).
NET_ADAPTER_STATISTICS_TRANSMIT_QUEUE_LENGTH The client can handle [OID_GEN_TRANSMIT_QUEUE_LENGTH](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-rcv-crc-error).
NET_ADAPTER_STATISTICS_BYTES_RCV The data in the **ifHCInOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_BYTES_XMIT The data in the **ifHCOutOctets** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_RCV_DISCARDS The data in the **ifInDiscards** member of NDIS_STATISTICS_INFO is valid.
NET_ADAPTER_STATISTICS_GEN_STATISTICS The client can handle [OID_GEN_STATISTICS](https://docs.microsoft.com/windows-hardware/drivers/network/oid-gen-statistics).
NET_ADAPTER_STATISTICS_XMIT_DISCARDS The data in the **ifOutDiscards** member of NDIS_STATISTICS_INFO is valid.

Remarks

The NET_ADAPTER_STATISTICS_FLAGS enumeration is used to specify supported statistics in the NET_ADAPTER_LINK_LAYER_CAPABILITIES structure.

The client driver passes an initialized NET_ADAPTER_LINK_LAYER_CAPABILITIES structure as an input parameter value to NetAdapterSetLinkLayerCapabilities.

The client returns an NDIS_STATISTICS_INFO structure when handling an OID_GEN_STATISTICS query.

Requirements

   
Minimum KMDF version 1.21
Header netadapter.h

See Also

NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES