Embedded TCP/IP stack  4.7.0

◆ fnet_netif_get_statistics()

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-2020 by Andrej Butok. http://fnet.sourceforge.net