Deleted Added
full compact
command.c (32267) command.c (32403)
1/*
2 * PPP User command processing module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
1/*
2 * PPP User command processing module
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * $Id: command.c,v 1.124 1997/12/30 23:22:27 brian Exp $
20 * $Id: command.c,v 1.125 1998/01/05 01:35:18 brian Exp $
21 *
22 */
23#include <sys/param.h>
24#include <netinet/in_systm.h>
25#include <netinet/in.h>
26#include <netinet/ip.h>
27#include <arpa/inet.h>
28#include <sys/socket.h>

--- 143 unchanged lines hidden (view full) ---

172 return 0;
173 }
174
175 if (arg->argc > 0 && (res = LoadCommand(arg)) != 0)
176 return res;
177
178 tries = 0;
179 do {
21 *
22 */
23#include <sys/param.h>
24#include <netinet/in_systm.h>
25#include <netinet/in.h>
26#include <netinet/ip.h>
27#include <arpa/inet.h>
28#include <sys/socket.h>

--- 143 unchanged lines hidden (view full) ---

172 return 0;
173 }
174
175 if (arg->argc > 0 && (res = LoadCommand(arg)) != 0)
176 return res;
177
178 tries = 0;
179 do {
180 if (tries) {
181 LogPrintf(LogPHASE, "Enter pause (%d) for redialing.\n",
182 VarRedialNextTimeout);
183 nointr_sleep(VarRedialNextTimeout);
184 }
180 if (VarTerm)
181 fprintf(VarTerm, "Dial attempt %u of %d\n", ++tries, VarDialTries);
182 if (OpenModem() < 0) {
183 if (VarTerm)
184 fprintf(VarTerm, "Failed to open modem.\n");
185 break;
186 }
187 if ((res = DialModem()) == EX_DONE) {

--- 1479 unchanged lines hidden ---
185 if (VarTerm)
186 fprintf(VarTerm, "Dial attempt %u of %d\n", ++tries, VarDialTries);
187 if (OpenModem() < 0) {
188 if (VarTerm)
189 fprintf(VarTerm, "Failed to open modem.\n");
190 break;
191 }
192 if ((res = DialModem()) == EX_DONE) {

--- 1479 unchanged lines hidden ---