On Wed, 8 Sep 1999, David Bannon wrote:
| I am using ppp 2.3.9 in a 'dial in server' for a handfull of modems and
|want to record the connect time. The man page indicates that CONNECT_TIME
|is available in the auth-down enviroment however it does not appear to be
|there. An experimental script (a binary really) that records all of the
|enviroment does not see CONNECT_TIME.
|
|A quick look in the source leads me to believe :
|
|CONNECT_TIME is added by the main.c->update_link_stats()
|which is called by ipcp.c->ipcp_down()
|which does not appear to be called at all !?!
It is called, there's just a lot of c-programming indirection. I know that
CONNECT_TIME is available in in /etc/ppp/ip-down, although I can't verify
that it's available in /etc/ppp/auth-down since I don't authenticate any
peers. Here's my /etc/ppp/ip-down script:
#! /bin/sh
/bin/echo -n `date`" " >> /var/log/connect-time
/bin/echo $CONNECT_TIME seconds >> /var/log/connect-time
---
Clifford Kite Not a guru. (tm)
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]