Deleted Added
full compact
command.c (37191) command.c (37192)
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.149 1998/06/25 22:33:15 brian Exp $
20 * $Id: command.c,v 1.150 1998/06/27 14:17:24 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>
29#include <net/route.h>
30#include <netdb.h>
31#include <sys/un.h>
32
33#ifndef NOALIAS
34#include <alias.h>
35#endif
36#include <errno.h>
37#include <fcntl.h>
38#include <paths.h>
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>
29#include <net/route.h>
30#include <netdb.h>
31#include <sys/un.h>
32
33#ifndef NOALIAS
34#include <alias.h>
35#endif
36#include <errno.h>
37#include <fcntl.h>
38#include <paths.h>
39#include <signal.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <string.h>
43#include <sys/wait.h>
44#include <termios.h>
45#include <unistd.h>
46
47#include "defs.h"

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

56#include "slcompress.h"
57#include "ipcp.h"
58#include "modem.h"
59#ifndef NOALIAS
60#include "alias_cmd.h"
61#endif
62#include "lqr.h"
63#include "hdlc.h"
39#include <stdio.h>
40#include <stdlib.h>
41#include <string.h>
42#include <sys/wait.h>
43#include <termios.h>
44#include <unistd.h>
45
46#include "defs.h"

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

55#include "slcompress.h"
56#include "ipcp.h"
57#include "modem.h"
58#ifndef NOALIAS
59#include "alias_cmd.h"
60#endif
61#include "lqr.h"
62#include "hdlc.h"
64#include "loadalias.h"
65#include "systems.h"
66#include "filter.h"
67#include "descriptor.h"
68#include "main.h"
69#include "route.h"
70#include "ccp.h"
71#include "auth.h"
72#include "async.h"

--- 46 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";
63#include "systems.h"
64#include "filter.h"
65#include "descriptor.h"
66#include "main.h"
67#include "route.h"
68#include "ccp.h"
69#include "auth.h"
70#include "async.h"

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

117#define NEG_PPPDDEFLATE 45
118#define NEG_PRED1 46
119#define NEG_PROTOCOMP 47
120#define NEG_SHORTSEQ 48
121#define NEG_VJCOMP 49
122#define NEG_DNS 50
123
124const char Version[] = "2.0-beta";
127const char VersionDate[] = "$Date: 1998/06/25 22:33:15 $";
125const char VersionDate[] = "$Date: 1998/06/27 14:17:24 $";
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 *);

--- 1964 unchanged lines hidden ---
126
127static int ShowCommand(struct cmdargs const *);
128static int TerminalCommand(struct cmdargs const *);
129static int QuitCommand(struct cmdargs const *);
130static int OpenCommand(struct cmdargs const *);
131static int CloseCommand(struct cmdargs const *);
132static int DownCommand(struct cmdargs const *);
133static int AllowCommand(struct cmdargs const *);

--- 1964 unchanged lines hidden ---