diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-09-21 23:01:34 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-09-21 23:01:34 +0000 |
commit | 94cad8bcb12918e8b255b7807cf264a6c22b4045 (patch) | |
tree | 72ab1cb73ab1d1be722868d29f7a6f2c530aa278 /usr.sbin/ppp | |
parent | 0639feb218e98b57c74f7ee99bb16500805d98e9 (diff) | |
download | src-94cad8bcb12918e8b255b7807cf264a6c22b4045.tar.gz src-94cad8bcb12918e8b255b7807cf264a6c22b4045.zip |
Sleep for a second before sending the first LCP
config request. This stops us from squirting stuff
down a line that still has ECHO turned on because the
peer hasn't had a chance to start yet.
Lead to the cause by: Greg Lehey <grog@lemis.com>
Notes
Notes:
svn path=/head/; revision=29692
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/lcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index 9484b7bbe552..c2392d7bf330 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.c,v 1.29 1997/09/03 00:40:49 brian Exp $ + * $Id: lcp.c,v 1.30 1997/09/03 02:08:19 brian Exp $ * * TODO: * o Validate magic number received from peer. @@ -390,6 +390,8 @@ void LcpOpen(int mode) { LcpFsm.open_mode = mode; + if (mode == OPEN_ACTIVE) + sleep(1); /* Give the peer time to start up */ FsmOpen(&LcpFsm); } |