summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-02-01 16:51:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-02-01 16:51:07 +0000
commit8e3caa52cd3f63b0d5c872e1cd05c1c0e6669aaf (patch)
tree329cd7b4156e8343db15328393ee69dcea9bb6c6
parent7de58239546395e21891b85d4a74012ab50231ab (diff)
downloadrtems-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.
-rw-r--r--c/src/exec/libnetworking/ChangeLog6
-rw-r--r--c/src/libnetworking/ChangeLog6
-rw-r--r--c/src/libnetworking/pppd/rtemspppd.c9
-rw-r--r--cpukit/libnetworking/ChangeLog6
-rw-r--r--cpukit/pppd/rtemspppd.c9
5 files changed, 34 insertions, 2 deletions
diff --git a/c/src/exec/libnetworking/ChangeLog b/c/src/exec/libnetworking/ChangeLog
index 562d1132ad..a0a3ae1c5a 100644
--- a/c/src/exec/libnetworking/ChangeLog
+++ b/c/src/exec/libnetworking/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-01-31 Mike Siers <mikes@poliac.com>
* pppd/rtemsdialer.h: New file missed in previous commit.
diff --git a/c/src/libnetworking/ChangeLog b/c/src/libnetworking/ChangeLog
index 562d1132ad..a0a3ae1c5a 100644
--- a/c/src/libnetworking/ChangeLog
+++ b/c/src/libnetworking/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-01-31 Mike Siers <mikes@poliac.com>
* pppd/rtemsdialer.h: New file missed in previous commit.
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 */
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog
index 562d1132ad..a0a3ae1c5a 100644
--- a/cpukit/libnetworking/ChangeLog
+++ b/cpukit/libnetworking/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-01-31 Mike Siers <mikes@poliac.com>
* pppd/rtemsdialer.h: New file missed in previous commit.
diff --git a/cpukit/pppd/rtemspppd.c b/cpukit/pppd/rtemspppd.c
index 0089c01946..1277499205 100644
--- a/cpukit/pppd/rtemspppd.c
+++ b/cpukit/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 */