Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pppd/pppd Unset connect-time timer on disconnect, a...



details:   https://anonhg.NetBSD.org/src/rev/37186e76ee93
branches:  trunk
changeset: 533880:37186e76ee93
user:      fredb <fredb%NetBSD.org@localhost>
date:      Wed Jul 10 15:00:35 2002 +0000

description:
Unset connect-time timer on disconnect, as discussed briefly on
tech-userlevel. Without this, using "demand" and "max-connect NNN"
together subjects the user to rather arbitrary disconnects.

diffstat:

 usr.sbin/pppd/pppd/auth.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a33909b20a20 -r 37186e76ee93 usr.sbin/pppd/pppd/auth.c
--- a/usr.sbin/pppd/pppd/auth.c Wed Jul 10 14:46:10 2002 +0000
+++ b/usr.sbin/pppd/pppd/auth.c Wed Jul 10 15:00:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auth.c,v 1.29 2002/07/01 22:19:30 itojun Exp $ */
+/*     $NetBSD: auth.c,v 1.30 2002/07/10 15:00:35 fredb Exp $  */
 
 /*
  * auth.c - PPP authentication and phase control.
@@ -62,7 +62,7 @@
 #if 0
 #define RCSID  "Id: auth.c,v 1.69 2001/03/12 22:50:01 paulus Exp "
 #else
-__RCSID("$NetBSD: auth.c,v 1.29 2002/07/01 22:19:30 itojun Exp $");
+__RCSID("$NetBSD: auth.c,v 1.30 2002/07/10 15:00:35 fredb Exp $");
 #endif
 #endif
 
@@ -762,6 +762,7 @@
 {
     if (--num_np_up == 0) {
        UNTIMEOUT(check_idle, NULL);
+       UNTIMEOUT(connect_time_expired, NULL);
        new_phase(PHASE_NETWORK);
     }
 }



Home | Main Index | Thread Index | Old Index