Skip to content
A C programming interface to the /proc/net/dev file
C
Pull request Compare This branch is 1 commit ahead, 8 commits behind jmslocum:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
man
.gitignore
Makefile
README.md
ifstats.c
ifstats.h
version.txt

README.md

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.

Something went wrong with that request. Please try again.