diff options
author | brian <brian@FreeBSD.org> | 1997-09-21 23:01:34 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-09-21 23:01:34 +0000 |
commit | 2a712aab9bb16cab5c075b86ee8fd76bd4a61582 (patch) | |
tree | 81482bbd542c94f9bf9eef35819d363b7e16f2a9 /usr.sbin | |
parent | 1fe2f80260499c14197103beb72e9454f6c78af3 (diff) | |
download | FreeBSD-src-2a712aab9bb16cab5c075b86ee8fd76bd4a61582.zip FreeBSD-src-2a712aab9bb16cab5c075b86ee8fd76bd4a61582.tar.gz |
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>
Diffstat (limited to 'usr.sbin')
-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 9484b7b..c2392d7 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); } |