Skip to content
/ ifstats Public
forked from jmslocum/ifstats

A C programming interface to the /proc/net/dev file

Notifications You must be signed in to change notification settings

telvue/ifstats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libifstats

This is a simple linux library for providing C level programming access to the /proc/net/dev file. All major Linux distributions use procfs and report system details through various dynamically generated files. This library will read the network stats reported by the kernel for all devices on the system and build a linked list of data structures.

Installation

To install libifstats on your system just clone the git repo, and run make

git clone git://github.com/jmslocum/ifstats.git
cd ifstats
make
sudo make install
make clean

The library is called libifstats.a, and will be installed to /usr/local/lib. The header file will be installed to /usr/local/include. and the man page will be installed to /usr/share/man/man3.

Documentation

To view the documentation you can run any of the following commands

man ifstats
man getIfStats
man releaseStats

Testing

The library was tested on Ubuntu 12.04 and Fedora 17. It was also run through Valgrind and no memory leaks or errors were reported.

License

This software is avilable under the MIT License.

About

A C programming interface to the /proc/net/dev file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.3%
  • Makefile 7.7%