Deleted Added
full compact
command.c (37018) command.c (37019)
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.144 1998/06/15 19:06:04 brian Exp $
20 * $Id: command.c,v 1.145 1998/06/16 19:40:26 brian Exp $
21 *
22 */
23#include <sys/types.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>

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

119#define NEG_PPPDDEFLATE 45
120#define NEG_PRED1 46
121#define NEG_PROTOCOMP 47
122#define NEG_SHORTSEQ 48
123#define NEG_VJCOMP 49
124#define NEG_DNS 50
125
126const char Version[] = "2.0-beta";
21 *
22 */
23#include <sys/types.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>

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

119#define NEG_PPPDDEFLATE 45
120#define NEG_PRED1 46
121#define NEG_PROTOCOMP 47
122#define NEG_SHORTSEQ 48
123#define NEG_VJCOMP 49
124#define NEG_DNS 50
125
126const char Version[] = "2.0-beta";
127const char VersionDate[] = "$Date: 1998/06/15 19:06:04 $";
127const char VersionDate[] = "$Date: 1998/06/16 19:40:26 $";
128
129static int ShowCommand(struct cmdargs const *);
130static int TerminalCommand(struct cmdargs const *);
131static int QuitCommand(struct cmdargs const *);
132static int OpenCommand(struct cmdargs const *);
133static int CloseCommand(struct cmdargs const *);
134static int DownCommand(struct cmdargs const *);
135static int AllowCommand(struct cmdargs const *);

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

262 const char *name;
263
264 if (arg->argc > arg->argn)
265 name = arg->argv[arg->argn];
266 else
267 name = "default";
268
269 if (!system_IsValid(name, arg->prompt, arg->bundle->phys_type.all)) {
128
129static int ShowCommand(struct cmdargs const *);
130static int TerminalCommand(struct cmdargs const *);
131static int QuitCommand(struct cmdargs const *);
132static int OpenCommand(struct cmdargs const *);
133static int CloseCommand(struct cmdargs const *);
134static int DownCommand(struct cmdargs const *);
135static int AllowCommand(struct cmdargs const *);

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

262 const char *name;
263
264 if (arg->argc > arg->argn)
265 name = arg->argv[arg->argn];
266 else
267 name = "default";
268
269 if (!system_IsValid(name, arg->prompt, arg->bundle->phys_type.all)) {
270 log_Printf(LogERROR, "%s: Label not allowed\n", name);
270 log_Printf(LogWARN, "%s: Label not allowed\n", name);
271 return 1;
272 } else {
273 /*
274 * Set the label before & after so that `set enddisc' works and
275 * we handle nested `load' commands.
276 */
277 bundle_SetLabel(arg->bundle, arg->argc > arg->argn ? name : NULL);
278 if (system_Select(arg->bundle, name, CONFFILE, arg->prompt, arg->cx) < 0) {

--- 1806 unchanged lines hidden ---
271 return 1;
272 } else {
273 /*
274 * Set the label before & after so that `set enddisc' works and
275 * we handle nested `load' commands.
276 */
277 bundle_SetLabel(arg->bundle, arg->argc > arg->argn ? name : NULL);
278 if (system_Select(arg->bundle, name, CONFFILE, arg->prompt, arg->cx) < 0) {

--- 1806 unchanged lines hidden ---