c - How to get in Linux application statistics about Ethernet? -
is possible retrieve various statistics errors (such rx_crc_error
) in c application, similar given in ethtool
? i've searched time how this, did not find whether possible done c application.
you should use /proc/
, read proc(5); perhaps read (sequentially) file under /proc/sys/net/
(or, commented nominal animal, /proc/net/dev
)
Comments
Post a Comment