diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-02-01 16:51:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-02-01 16:51:07 +0000 |
commit | 8e3caa52cd3f63b0d5c872e1cd05c1c0e6669aaf (patch) | |
tree | 329cd7b4156e8343db15328393ee69dcea9bb6c6 /c/src/libnetworking/pppd/rtemspppd.c | |
parent | 2001-02-01 Greg Menke <gregory.menke@gsfc.nasa.gov> (diff) | |
download | rtems-8e3caa52cd3f63b0d5c872e1cd05c1c0e6669aaf.tar.bz2 |
2001-02-01 Mike Siers <mikes@poliac.com>
* pppd/rtemspppd.c (rtems_pppd_disconnect): Modified to avoid bringing
the link down too fast.
NOTE: Mike reports successfully running at 56K baud on a direct link.
Diffstat (limited to 'c/src/libnetworking/pppd/rtemspppd.c')
-rw-r--r-- | c/src/libnetworking/pppd/rtemspppd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/c/src/libnetworking/pppd/rtemspppd.c b/c/src/libnetworking/pppd/rtemspppd.c index 0089c01946..1277499205 100644 --- a/c/src/libnetworking/pppd/rtemspppd.c +++ b/c/src/libnetworking/pppd/rtemspppd.c @@ -196,11 +196,18 @@ int rtems_pppd_connect(void) return ( 0 ); } -int rtems_pppd_disconnect(void) +static void timeout_terminate(void *arg) { /* set pppd global variables to disconnect */ persist = 0; kill_link = 1; +} + +int rtems_pppd_disconnect(void) +{ + /* need to wait a little time before we can bring the link down */ + /* set up time out in 1 seconds */ + TIMEOUT(timeout_terminate, NULL, 1); /* send event to wake up the pppd code */ /* pretend its a serial interrput */ |