Yeah, my C is really not too great, but I have a partner that is a very good C programmer, so I'll pass this to him. We are actually using ntop right now and it's working wonderfully. Thanks.
nb On Tue, Jul 15, 2003 at 03:00:47PM -0700, Aaron Suen wrote: > > > Currently, AltQ does not keep any per-host statistics/counters. All it > > > can read and update is per-queue values. And even if you'd create one > > > queue per host, it wouldn't care about the amount of past traffic, all > > > it cares about is rates. > > I've noticed, however, that ntop (ports/packages) DOES seem to collect total > throughput statistics per-host. My guess is that it uses bpf to actually sniff > the packets, but you might be able to create a througput counter application > based on this code base... how's your C? If you could create a counter daemon > with ntop, it shouldn't be too hard to incorporate source from pfctl to adjust > the queues every so often. As for any kind of per-state, per-connection, etc, > logic, you'd have to chew on a good amount of code from pftop as well (also > ports). I hate having to tell somebody "it could be done but I'm not brave > enough to try myself" but this is the best I can come up with. > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com
