I\'m looking for a way to get hold of network stats in C on Linux and MacOSX. Specifically, I need to monitor the number of bytes uploaded and downloaded from each network a
on Linux:
/sys/class/net/eth0/statistics/
ip -s link show eth0