From owner-cvs-usrsbin Tue Jan 20 14:52:05 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14527 for cvs-usrsbin-outgoing; Tue, 20 Jan 1998 14:52:05 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14180; Tue, 20 Jan 1998 14:48:53 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA04911; Tue, 20 Jan 1998 14:47:51 -0800 (PST) Date: Tue, 20 Jan 1998 14:47:51 -0800 (PST) Message-Id: <199801202247.OAA04911@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp ccp.c command.c fsm.c fsm.h ipcp.c lcp.c main.c main.h modem.c ppp.8 vars.c vars.h Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 1998/01/20 14:47:51 PST Modified files: usr.sbin/ppp ccp.c command.c fsm.c fsm.h ipcp.c lcp.c main.c main.h modem.c ppp.8 vars.c vars.h Log: Allow an optional delay when specifying "set openmode active". The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received. This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode). Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode. Revision Changes Path 1.29 +6 -5 src/usr.sbin/ppp/ccp.c 1.129 +5 -6 src/usr.sbin/ppp/command.c 1.27 +31 -6 src/usr.sbin/ppp/fsm.c 1.15 +3 -3 src/usr.sbin/ppp/fsm.h 1.49 +5 -4 src/usr.sbin/ppp/ipcp.c 1.54 +10 -6 src/usr.sbin/ppp/lcp.c 1.118 +9 -13 src/usr.sbin/ppp/main.c 1.9 +2 -2 src/usr.sbin/ppp/main.h 1.75 +2 -2 src/usr.sbin/ppp/modem.c 1.96 +16 -5 src/usr.sbin/ppp/ppp.8 1.44 +3 -3 src/usr.sbin/ppp/vars.c 1.41 +2 -2 src/usr.sbin/ppp/vars.h