diff options
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index d410640..7a9a526 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.127 1998/01/11 17:50:31 brian Exp $ + * $Id: command.c,v 1.128 1998/01/18 20:49:15 brian Exp $ * */ #include <sys/param.h> @@ -190,9 +190,8 @@ DialCommand(struct cmdargs const *arg) break; } if ((res = DialModem()) == EX_DONE) { - nointr_sleep(1); ModemTimeout(NULL); - PacketMode(); + PacketMode(VarOpenMode); break; } else if (res == EX_SIG) return 1; @@ -1400,9 +1399,9 @@ static int SetOpenMode(struct cmdargs const *arg) { if (arg->argc > 0) { - if (strcmp(*arg->argv, "active") == 0) - VarOpenMode = OPEN_ACTIVE; - else if (strcmp(*arg->argv, "passive") == 0) + if (strcasecmp(*arg->argv, "active") == 0) + VarOpenMode = arg->argc > 1 ? atoi(arg->argv[1]) : 1; + else if (strcasecmp(*arg->argv, "passive") == 0) VarOpenMode = OPEN_PASSIVE; else return -1; |