[ previous ] [ next ] [ threads ]
 From:  Peter Allgeyer <allgeyer at web dot de>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall-dev] Uptime WAN (addition)
 Date:  Mon, 10 Jan 2005 19:25:41 +0100
Am Montag, den 10.01.2005, 15:39 +0100 schrieb Florian Munz:
> What programm ist responsible for the ppp connection? Maybe the uptime
> (or connection time) is already provided by this?

If someone is interested in implementing this: There are two timers in
mpd's iface.c: sessionTimer and idleTimer. They are only started if the
corresponding timeout value was set. Writing some C-code, these timers
could be shown by the console access "show iface" command. Console
access can be permitted by localhost only, so that there is a way for
status_interfaces.php to look at some statistic data via tcp socket.

Ciao ...
	... PIT ...

 copyleft(c) by |           I'm not sure whether that's
 Peter Allgeyer |   _-_     actually useful...  -- Larry Wall in
                | 0(o_o)0   <199710011704 dot KAA21395 at wall dot org>