diff options
author | brian <brian@FreeBSD.org> | 1999-06-17 22:12:51 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-17 22:12:51 +0000 |
commit | a77fccf74e6e1b79834b2cd694384b76d965a4b1 (patch) | |
tree | 130259086c9b64a3ad291202b34e683f25aa5dd7 /usr.sbin | |
parent | 50d391d61fd6ebec9fba42dc585f94eee3ee6e45 (diff) | |
download | FreeBSD-src-a77fccf74e6e1b79834b2cd694384b76d965a4b1.zip FreeBSD-src-a77fccf74e6e1b79834b2cd694384b76d965a4b1.tar.gz |
Reset our start time when the link comes up, correcting
the reported connection time.
PR: 11943
Submitted by: Peter Mutsaers <plm@xs4all.nl>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pppd/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 313b2ab..0ca6ef1 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 <stdio.h> @@ -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; ) { |