summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/main.h
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-01-20 22:46:33 +0000
committerbrian <brian@cvs.openbsd.org>1998-01-20 22:46:33 +0000
commit3d2201a7982c109e8fc6c5a6a83083f7c0a26303 (patch)
tree2d37ccc60ab36afd94ca01e70d677e7fcb350e71 /usr.sbin/ppp/main.h
parent9c88dd386e8011d11f46ffbeec2a412dc2c9edc5 (diff)
Allow an optional delay when specifying "set openmode active".
The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received. This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode). Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode.
Diffstat (limited to 'usr.sbin/ppp/main.h')
-rw-r--r--usr.sbin/ppp/main.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.h b/usr.sbin/ppp/main.h
index b44c699569c..d4439eaa563 100644
--- a/usr.sbin/ppp/main.h
+++ b/usr.sbin/ppp/main.h
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.h,v 1.1 1997/11/23 20:27:34 brian Exp $
+ * $Id: main.h,v 1.2 1998/01/20 22:46:28 brian Exp $
*
*/
@@ -26,6 +26,6 @@ extern int tunno;
extern void Cleanup(int);
extern void TtyTermMode(void);
-extern void PacketMode(void);
+extern void PacketMode(int);
extern void TtyOldMode(void);
extern void TtyCommandMode(int);