From 3d81388ebfeb968753b90a659d3192e41ac37855 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 17 May 1997 16:08:48 +0000 Subject: [PATCH] Make openmode active by default (for both client/server). Requested by: The masses. --- usr.sbin/ppp/main.c | 7 ++----- usr.sbin/ppp/vars.c | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 052cad124e09..c0f1a70985f2 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.49 1997/05/11 10:23:16 brian Exp $ + * $Id: main.c,v 1.50 1997/05/14 01:18:51 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -532,10 +532,7 @@ PacketMode() CcpInit(); LcpUp(); - if (mode & (MODE_DIRECT|MODE_DEDICATED)) - LcpOpen(OPEN_ACTIVE); - else - LcpOpen(VarOpenMode); + LcpOpen(VarOpenMode); if ((mode & (MODE_INTER|MODE_AUTO)) == MODE_INTER) { TtyCommandMode(1); fprintf(stderr, "Packet mode.\r\n"); diff --git a/usr.sbin/ppp/vars.c b/usr.sbin/ppp/vars.c index 2d51b1c5fd78..aca7f6c78390 100644 --- a/usr.sbin/ppp/vars.c +++ b/usr.sbin/ppp/vars.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: vars.c,v 1.14 1997/04/21 01:02:00 brian Exp $ + * $Id: vars.c,v 1.15 1997/05/10 03:39:55 brian Exp $ * */ #include "fsm.h" @@ -29,7 +29,7 @@ #include "defs.h" char VarVersion[] = "Version 0.94"; -char VarLocalVersion[] = "$Date: 1997/04/21 01:02:00 $"; +char VarLocalVersion[] = "$Date: 1997/05/10 03:39:55 $"; /* * Order of conf option is important. See vars.h. @@ -52,7 +52,7 @@ struct pppvars pppVars = { DEF_MRU, 0, MODEM_SPEED, CS8, MODEM_CTSRTS, 180, 30, 3, RECONNECT_TIMER, RECONNECT_TRIES, REDIAL_PERIOD, NEXT_REDIAL_PERIOD, 1, MODEM_DEV, BASE_MODEM_DEV, - OPEN_PASSIVE, LOCAL_NO_AUTH, + OPEN_ACTIVE, LOCAL_NO_AUTH, }; int