Embedded TCP/IP stack: fnet_netif_get_statistics

FNET

fnet_return_t fnet_netif_get_statistics ( fnet_netif_desc_t  netif_desc,
struct fnet_netif_statistics statistics 
)

Retrieves the network interface statistics.

Parameters
netif_descNetwork interface descriptor.
statisticsStructure that receives the network interface statistics defined by the fnet_netif_statistics structure.
Returns
This function returns:
  • FNET_OK if no error occurs.
  • FNET_ERR if an error occurs or the network interface driver does not support this statistics.

This function retrieves the network statistics of the netif interface and puts it into the statistics defined by the fnet_netif_statistics structure.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net