From 43f9e1bb41bd6fbac217b59bd2ba338c75126166 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 17 Jun 1999 22:12:51 +0000 Subject: Reset our start time when the link comes up, correcting the reported connection time. PR: 11943 Submitted by: Peter Mutsaers --- usr.sbin/pppd/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pppd') diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 313b2ab28184..0ca6ef14ff24 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.16 1998/03/22 05:33:00 peter Exp $"; +static char rcsid[] = "$Id: main.c,v 1.17 1998/06/20 18:02:12 peter Exp $"; #endif #include @@ -548,6 +548,7 @@ main(argc, argv) * incoming events (reply, timeout, etc.). */ syslog(LOG_NOTICE, "Connect: %s <--> %s", ifname, devnam); + stime = time((time_t *) NULL); lcp_lowerup(0); lcp_open(0); /* Start protocol */ for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD; ) { -- cgit v1.3