Deleted Added
full compact
command.c (55252) command.c (58033)
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 * $FreeBSD: head/usr.sbin/ppp/command.c 55252 1999-12-30 03:36:11Z brian $
20 * $FreeBSD: head/usr.sbin/ppp/command.c 58033 2000-03-14 01:46:49Z brian $
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>

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

1898 "hangup script", "set hangup chat-script", (const void *) VAR_HANGUP},
1899 {"ifaddr", NULL, SetInterfaceAddr, LOCAL_AUTH, "destination address",
1900 "set ifaddr [src-addr [dst-addr [netmask [trg-addr]]]]"},
1901 {"ipcpretry", "ipcpretries", SetVariable, LOCAL_AUTH, "IPCP retries",
1902 "set ipcpretry value [attempts]", (const void *)VAR_IPCPRETRY},
1903 {"lcpretry", "lcpretries", SetVariable, LOCAL_AUTH | LOCAL_CX, "LCP retries",
1904 "set lcpretry value [attempts]", (const void *)VAR_LCPRETRY},
1905 {"log", NULL, log_SetLevel, LOCAL_AUTH, "log level",
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>

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

1898 "hangup script", "set hangup chat-script", (const void *) VAR_HANGUP},
1899 {"ifaddr", NULL, SetInterfaceAddr, LOCAL_AUTH, "destination address",
1900 "set ifaddr [src-addr [dst-addr [netmask [trg-addr]]]]"},
1901 {"ipcpretry", "ipcpretries", SetVariable, LOCAL_AUTH, "IPCP retries",
1902 "set ipcpretry value [attempts]", (const void *)VAR_IPCPRETRY},
1903 {"lcpretry", "lcpretries", SetVariable, LOCAL_AUTH | LOCAL_CX, "LCP retries",
1904 "set lcpretry value [attempts]", (const void *)VAR_LCPRETRY},
1905 {"log", NULL, log_SetLevel, LOCAL_AUTH, "log level",
1906 "set log [local] [+|-]async|cbcp|ccp|chat|command|connect|debug|hdlc|id0|"
1907 "ipcp|lcp|lqm|phase|physical|sync|tcp/ip|timer|tun..."},
1906 "set log [local] [+|-]async|cbcp|ccp|chat|command|connect|debug|dns|hdlc|"
1907 "id0|ipcp|lcp|lqm|phase|physical|sync|tcp/ip|timer|tun..."},
1908 {"login", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX,
1909 "login script", "set login chat-script", (const void *) VAR_LOGIN},
1910 {"logout", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX,
1911 "logout script", "set logout chat-script", (const void *) VAR_LOGOUT},
1912 {"lqrperiod", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX_OPT,
1913 "LQR period", "set lqrperiod value", (const void *)VAR_LQRPERIOD},
1914 {"mode", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX, "mode value",
1915 "set mode interactive|auto|ddial|background", (const void *)VAR_MODE},

--- 735 unchanged lines hidden ---
1908 {"login", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX,
1909 "login script", "set login chat-script", (const void *) VAR_LOGIN},
1910 {"logout", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX,
1911 "logout script", "set logout chat-script", (const void *) VAR_LOGOUT},
1912 {"lqrperiod", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX_OPT,
1913 "LQR period", "set lqrperiod value", (const void *)VAR_LQRPERIOD},
1914 {"mode", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX, "mode value",
1915 "set mode interactive|auto|ddial|background", (const void *)VAR_MODE},

--- 735 unchanged lines hidden ---