Deleted Added
sdiff udiff text old ( 26321 ) new ( 26326 )
full compact
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.51 1997/05/29 02:29:12 brian Exp $
21 *
22 */
23#include <sys/types.h>
24#include <ctype.h>
25#include <termios.h>
26#include <sys/wait.h>
27#include <time.h>
28#include <netdb.h>

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

367}
368
369static int ShowLogList()
370{
371 ListLog();
372 return(1);
373}
374
375static int ShowReconnect()
376{
377 printf(" Reconnect Timer: %d, %d tries\n",
378 VarReconnectTimer, VarReconnectTries);
379 return(1);
380}
381
382static int ShowRedial()

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

446 { "lcp", NULL, ReportLcpStatus, LOCAL_AUTH,
447 "Show LCP status", StrNull},
448 { "log", NULL, ShowLogList, LOCAL_AUTH,
449 "Show log records", StrNull},
450 { "mem", NULL, ShowMemMap, LOCAL_AUTH,
451 "Show memory map", StrNull},
452 { "modem", NULL, ShowModemStatus, LOCAL_AUTH,
453 "Show modem setups", StrNull},
454 { "ofilter", NULL, ShowOfilter, LOCAL_AUTH,
455 "Show Output filters", StrOption},
456 { "proto", NULL, ReportProtStatus, LOCAL_AUTH,
457 "Show protocol summary", StrNull},
458 { "reconnect",NULL, ShowReconnect, LOCAL_AUTH,
459 "Show Reconnect timer,tries", StrNull},
460 { "redial", NULL, ShowRedial, LOCAL_AUTH,
461 "Show Redial timeout value", StrNull},

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

829}
830
831static int
832SetInitialMRU(list, argc, argv)
833struct cmdtab *list;
834int argc;
835char **argv;
836{
837 int mru;
838
839 if (argc > 0) {
840 mru = atoi(*argv);
841 if (mru < 100)
842 printf("given value is too small.\n");
843 else if (mru > MAX_MRU)
844 printf("given value is too big.\n");
845 else
846 VarMRU = mru;
847 }
848 return(1);
849}
850
851static int
852SetIdleTimeout(list, argc, argv)
853struct cmdtab *list;
854int argc;
855char **argv;
856{
857 if (argc-- > 0) {
858 VarIdleTimeout = atoi(*argv++);
859 if (argc-- > 0) {

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

1112 { "ifaddr", NULL, SetInterfaceAddr, LOCAL_AUTH,
1113 "Set destination address", "[src-addr [dst-addr [netmask [trg-addr]]]]"},
1114 { "ifilter", NULL, SetIfilter, LOCAL_AUTH,
1115 "Set input filter", "..."},
1116 { "login", NULL, SetVariable, LOCAL_AUTH,
1117 "Set login script", StrChatStr, (void *)VAR_LOGIN },
1118 { "mru", NULL, SetInitialMRU, LOCAL_AUTH,
1119 "Set Initial MRU value", StrValue },
1120 { "ofilter", NULL, SetOfilter, LOCAL_AUTH,
1121 "Set output filter", "..." },
1122 { "openmode", NULL, SetOpenMode, LOCAL_AUTH,
1123 "Set open mode", "[active|passive]"},
1124 { "parity", NULL, SetModemParity, LOCAL_AUTH,
1125 "Set modem parity", "[odd|even|none]"},
1126 { "phone", NULL, SetVariable, LOCAL_AUTH,
1127 "Set telephone number(s)", "phone1[:phone2[...]]", (void *)VAR_PHONE },

--- 185 unchanged lines hidden ---