Deleted Added
full compact
command.c (47061) command.c (47211)
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.192 1999/05/08 11:06:21 brian Exp $
20 * $Id: command.c,v 1.193 1999/05/12 09:48:44 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>

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

138#define NEG_PPPDDEFLATE 47
139#define NEG_PRED1 48
140#define NEG_PROTOCOMP 49
141#define NEG_SHORTSEQ 50
142#define NEG_VJCOMP 51
143#define NEG_DNS 52
144
145const char Version[] = "2.21";
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>

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

138#define NEG_PPPDDEFLATE 47
139#define NEG_PRED1 48
140#define NEG_PROTOCOMP 49
141#define NEG_SHORTSEQ 50
142#define NEG_VJCOMP 51
143#define NEG_DNS 52
144
145const char Version[] = "2.21";
146const char VersionDate[] = "$Date: 1999/05/08 11:06:21 $";
146const char VersionDate[] = "$Date: 1999/05/12 09:48:44 $";
147
148static int ShowCommand(struct cmdargs const *);
149static int TerminalCommand(struct cmdargs const *);
150static int QuitCommand(struct cmdargs const *);
151static int OpenCommand(struct cmdargs const *);
152static int CloseCommand(struct cmdargs const *);
153static int DownCommand(struct cmdargs const *);
154static int SetCommand(struct cmdargs const *);

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

752 {"filter", NULL, filter_Show, LOCAL_AUTH,
753 "packet filters", "show filter [in|out|dial|alive]"},
754 {"hdlc", NULL, hdlc_ReportStatus, LOCAL_AUTH | LOCAL_CX,
755 "HDLC errors", "show hdlc"},
756 {"iface", "interface", iface_Show, LOCAL_AUTH,
757 "Interface status", "show iface"},
758 {"ipcp", NULL, ipcp_Show, LOCAL_AUTH,
759 "IPCP status", "show ipcp"},
147
148static int ShowCommand(struct cmdargs const *);
149static int TerminalCommand(struct cmdargs const *);
150static int QuitCommand(struct cmdargs const *);
151static int OpenCommand(struct cmdargs const *);
152static int CloseCommand(struct cmdargs const *);
153static int DownCommand(struct cmdargs const *);
154static int SetCommand(struct cmdargs const *);

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

752 {"filter", NULL, filter_Show, LOCAL_AUTH,
753 "packet filters", "show filter [in|out|dial|alive]"},
754 {"hdlc", NULL, hdlc_ReportStatus, LOCAL_AUTH | LOCAL_CX,
755 "HDLC errors", "show hdlc"},
756 {"iface", "interface", iface_Show, LOCAL_AUTH,
757 "Interface status", "show iface"},
758 {"ipcp", NULL, ipcp_Show, LOCAL_AUTH,
759 "IPCP status", "show ipcp"},
760 {"layers", NULL, link_ShowLayers, LOCAL_AUTH | LOCAL_CX_OPT,
761 "Protocol layers", "show layers"},
760 {"lcp", NULL, lcp_ReportStatus, LOCAL_AUTH | LOCAL_CX,
761 "LCP status", "show lcp"},
762 {"link", "datalink", datalink_Show, LOCAL_AUTH | LOCAL_CX,
763 "(high-level) link info", "show link"},
764 {"links", NULL, bundle_ShowLinks, LOCAL_AUTH,
765 "available link names", "show links"},
766 {"log", NULL, log_ShowLevel, LOCAL_AUTH,
767 "log levels", "show log"},

--- 1786 unchanged lines hidden ---
762 {"lcp", NULL, lcp_ReportStatus, LOCAL_AUTH | LOCAL_CX,
763 "LCP status", "show lcp"},
764 {"link", "datalink", datalink_Show, LOCAL_AUTH | LOCAL_CX,
765 "(high-level) link info", "show link"},
766 {"links", NULL, bundle_ShowLinks, LOCAL_AUTH,
767 "available link names", "show links"},
768 {"log", NULL, log_ShowLevel, LOCAL_AUTH,
769 "log levels", "show log"},

--- 1786 unchanged lines hidden ---