command.c (79370) | command.c (79433) |
---|---|
1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/command.c 79370 2001-07-06 23:45:32Z brian $ | 28 * $FreeBSD: head/usr.sbin/ppp/command.c 79433 2001-07-09 00:07:56Z brian $ |
29 */ 30 31#include <sys/param.h> 32#include <netinet/in_systm.h> 33#include <netinet/in.h> 34#include <netinet/ip.h> 35#include <arpa/inet.h> 36#include <sys/socket.h> --- 590 unchanged lines hidden (view full) --- 627 (const void *) PKT_ALIAS_DENY_INCOMING}, 628 {"enable", NULL, NatEnable, LOCAL_AUTH, 629 "enable NAT", "nat enable yes|no"}, 630 {"log", NULL, NatOption, LOCAL_AUTH, 631 "log NAT link creation", "nat log yes|no", 632 (const void *) PKT_ALIAS_LOG}, 633 {"port", NULL, nat_RedirectPort, LOCAL_AUTH, "port redirection", 634 "nat port proto localaddr:port[-port] aliasport[-aliasport]"}, | 29 */ 30 31#include <sys/param.h> 32#include <netinet/in_systm.h> 33#include <netinet/in.h> 34#include <netinet/ip.h> 35#include <arpa/inet.h> 36#include <sys/socket.h> --- 590 unchanged lines hidden (view full) --- 627 (const void *) PKT_ALIAS_DENY_INCOMING}, 628 {"enable", NULL, NatEnable, LOCAL_AUTH, 629 "enable NAT", "nat enable yes|no"}, 630 {"log", NULL, NatOption, LOCAL_AUTH, 631 "log NAT link creation", "nat log yes|no", 632 (const void *) PKT_ALIAS_LOG}, 633 {"port", NULL, nat_RedirectPort, LOCAL_AUTH, "port redirection", 634 "nat port proto localaddr:port[-port] aliasport[-aliasport]"}, |
635 {"proto", NULL, nat_RedirectProto, LOCAL_AUTH, "protocol redirection", 636 "nat proto proto localIP [publicIP [remoteIP]]"}, |
|
635 {"proxy", NULL, nat_ProxyRule, LOCAL_AUTH, 636 "proxy control", "nat proxy server host[:port] ..."}, 637 {"same_ports", NULL, NatOption, LOCAL_AUTH, 638 "try to leave port numbers unchanged", "nat same_ports yes|no", 639 (const void *) PKT_ALIAS_SAME_PORTS}, 640 {"target", NULL, nat_SetTarget, LOCAL_AUTH, 641 "Default address for incoming connections", "nat target addr" }, 642 {"unregistered_only", NULL, NatOption, LOCAL_AUTH, --- 2342 unchanged lines hidden --- | 637 {"proxy", NULL, nat_ProxyRule, LOCAL_AUTH, 638 "proxy control", "nat proxy server host[:port] ..."}, 639 {"same_ports", NULL, NatOption, LOCAL_AUTH, 640 "try to leave port numbers unchanged", "nat same_ports yes|no", 641 (const void *) PKT_ALIAS_SAME_PORTS}, 642 {"target", NULL, nat_SetTarget, LOCAL_AUTH, 643 "Default address for incoming connections", "nat target addr" }, 644 {"unregistered_only", NULL, NatOption, LOCAL_AUTH, --- 2342 unchanged lines hidden --- |