[lgfaq] [jahanbakhsh at afranet.biz: Our Problem about Quake 3 Arena!] (somebody wanna explain netstat to this idiot?)

Andrew Pilley ashridah at icculus.org
Sun Feb 1 17:32:01 EST 2004


On Sun, 2004-02-01 at 21:41, Ryan C. Gordon wrote:
> > tools that logs the client IP address and connection/disconnection
> > times for our usage.
> 
> fwiw, you can't use netstat for this; Q3A uses UDP, so there isn't a
> connection...just packets coming from arbitrary IPs that may or may not
> have any order or meaning.
> 
> He needs a Quake 3 log file parser. I don't know of one, but surely they
> exist.

even then, that won't necessarily get him usage, just "connections".

He could mix that and some funky iptables -> userspace type magic to
count the quake3 specific udp packets, however. 
Problem with that is that it's both error prone if you're not completely
familiar with tcp/ip, and has a potential to steal a bit of cpu power
(not as much as you'd expect tho, i've seen it be very efficient on even
a lowish powered machine for packet accounting, even with python being
the userspace recipient)

Basically, he's probably more interested in finding a general set of
capable network accounting tools. ipac-ng might work, I just forget how
connections get allocated in quake3 (wether it uses multiple ports on
the server after the client connects, etc). This, of course, is still
going to be tricky to monitor per-client, but you could easily monitor
per-serverport.

Andrew Pilley

> 
> --ryan.
> 
> 
> 
-- 
I hereby pose this question for analysis. 
Are Microsoft users smarter than hamsters?
*Bluescreen* Reboot *Bluescreen* Reboot *Bluescreen* Reboot
Hamsters 1, Users 0.





More information about the Lgfaq mailing list