trafcalc 1.2

Trafcalc calculates the size of the TCP-payload on a system via packet capturing
interfaceTrafcalc calculates the size of the TCP-payload on a system via packet capturing and connection tracking at the user level instead of the IP level.

The program uses a pcap (a library for Packet CAPturing) callback function which is called for every incoming (tcp) packet. This function has a database in form of a global linked list of structs to manage connenctions (adding new, removing old). If a connection is not found in this database it looks up the user ID for that connection and adds it to the list. Then it gets the size of the packet and adds it to the value of the traffic for that user ID, which is stored in a similar linked list of user IDs. At the end it writes out all the information at a given interval to a file in /var/log/traffic.

last updated on:
July 5th, 2006, 8:05 GMT
price:
FREE!
homepage:
trafcalc.sourceforge.net
license type:
GPL (GNU General Public License) 
developed by:
Mathias Bernhardt
category:
ROOT \ System \ Networking
trafcalc
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT