A little bit of code that loads network device statistics from any operating system that supports procfs.
Just a small snippet. Originally used in some network monitoring code that I wrote that graphed your network traffic.
I would include that here too but that's a little messy.