Extensible Firmware Interface Specification
15-14 12/01/02 Version 1.10
EFI_SIMPLE_NETWORK.Statistics()
Summary
Resets or collects the statistics on a network interface.
Prototype
EFI_STATUS
(EFIAPI *EFI_SIMPLE_NETWORK_STATISTICS) (
IN EFI_SIMPLE_NETWORK *This,
IN BOOLEAN Reset,
IN OUT UINTN *StatisticsSize OPTIONAL,
OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
);
Parameters
This A pointer to the EFI_SIMPLE_NETWORK instance.
Reset Set to TRUE to reset the statistics for the network interface.
StatisticsSize On input the size, in bytes, of StatisticsTable. On output
the size, in bytes, of the resulting table of statistics.
StatisticsTable A pointer to the EFI_NETWORK_STATISTICS
structure that
contains the statistics. Type EFI_NETWORK_STATISTICS is
defined in “Related Definitions” below.
Related Definitions
//*******************************************************
// EFI_NETWORK_STATISTICS
//
// Any statistic value that is –1 is not available
// on the device and is to be ignored.
//*******************************************************
typedef struct {
UINT64 RxTotalFrames;
UINT64 RxGoodFrames;
UINT64 RxUndersizeFrames;
UINT64 RxOversizeFrames;
UINT64 RxDroppedFrames;
UINT64 RxUnicastFrames;
UINT64 RxBroadcastFrames;
UINT64 RxMulticastFrames;
UINT64 RxCrcErrorFrames;
UINT64 RxTotalBytes;
UINT64 TxTotalFrames;