From 8e3caa52cd3f63b0d5c872e1cd05c1c0e6669aaf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 1 Feb 2002 16:51:07 +0000 Subject: 2001-02-01 Mike Siers * 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. --- c/src/libnetworking/pppd/rtemspppd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'c/src/libnetworking/pppd/rtemspppd.c') 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 */ -- cgit v1.2.3