There are still two things you should know before using this program:
Number one is, the calculations are far from perfect. As the packets come in with
quite some speed and each must be analyzed, it can happen that some get lost.
It might calculate up to 10% fewer than the actual traffic.
Number two is closely related to this and is about CPU time. I've tested it on my
p4 2,4Ghz and it used up to 10% of the CPU rate in ps during a 3MB/s ftp transfer.
So it's probably not a good idea to run this on a 100mbit edonkey server.
Trafcalc is copyrighted since 2003 by me, Mathias Bernhardt (projectsATcyberny.de)
and it is as you allready may have guessed, distributed unter the Gnu GPL.
That means you are welcome to redistribute it and patch it and do several other
work, that i should have done. (details)
But as I'm doing something good for the world I'm also able to beg for
money/food/etc in a morally legitimated situation.
So if you like this program and also want to do something good for the world
while lacking the ability of writing code, send me money/food/etc ... please! ;-)
I wrote this program because i needed something with this function.
Several earlyer attempts where perlscripts that used tcpdump and later the
perl interface to libcap. None of them burned the CPU but they weren't
a real good solution either.
This is also my first c program and i had not the chance to learn programming
at school or at any other institution so it's not really as perfect as i would
like it to be. (take the last 12 words for my English, too)
If you have any practical ideas what to change or how to make it better,
put it into a mail to (projectsATcyberny.de).