Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

µC/TCP-IP periodically measures and estimates run-time performance on a per interface basis. The performance data is stored in the global µC/TCP-IP statistics data structure, Net_StatCtrs which is of type NET_CTR_STATS.

Each interface has a performance metric structure which is allocated within a single array of NET_CTR_IF_STATS. Each index in the array represents a different interface.

In order to access the performance metrics for a specific interface number, the application may externally access the array by viewing the variable Net_StatCtrs.NetIF_StatCtrs[if_nbr].field_name, where if_nbr represents the interface number in question, 0 for the loopback interface, and where field_name corresponds to one of the fields below.

Possible field names:

NetIF_StatRxNbrOctets
NetIF_StatRxNbrOctetsPerSec
NetIF_StatRxNbrOctetsPerSecMax
NetIF_StatRxNbrPktCtr
NetIF_StatRxNbrPktCtrPerSec
NetIF_StatRxNbrPktCtrPerSecMax
NetIF_StatRxNbrPktCtrProcessed
NetIF_StatTxNbrOctets
NetIF_StatTxNbrOctetsPerSec
NetIF_StatTxNbrOctetsPerSecMax
NetIF_StatTxNbrPktCtr
NetIF_StatTxNbrPktCtrPerSec
NetIF_StatTxNbrPktCtrPerSecMax
NetIF_StatTxNbrPktCtrProcessed

See Chapter 12, “Statistics and Error Counters” for more information.

  • No labels