Deleted Added
full compact
command.c (116622) command.c (120372)
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 116622 2003-06-20 16:15:59Z ume $
28 * $FreeBSD: head/usr.sbin/ppp/command.c 120372 2003-09-23 07:41:55Z marcus $
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>

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

768 {"proto", NULL, nat_RedirectProto, LOCAL_AUTH, "protocol redirection",
769 "nat proto proto localIP [publicIP [remoteIP]]"},
770 {"proxy", NULL, nat_ProxyRule, LOCAL_AUTH,
771 "proxy control", "nat proxy server host[:port] ..."},
772#ifndef NO_FW_PUNCH
773 {"punch_fw", NULL, nat_PunchFW, LOCAL_AUTH,
774 "firewall control", "nat punch_fw [base count]"},
775#endif
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>

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

768 {"proto", NULL, nat_RedirectProto, LOCAL_AUTH, "protocol redirection",
769 "nat proto proto localIP [publicIP [remoteIP]]"},
770 {"proxy", NULL, nat_ProxyRule, LOCAL_AUTH,
771 "proxy control", "nat proxy server host[:port] ..."},
772#ifndef NO_FW_PUNCH
773 {"punch_fw", NULL, nat_PunchFW, LOCAL_AUTH,
774 "firewall control", "nat punch_fw [base count]"},
775#endif
776 {"skinny_port", NULL, nat_SkinnyPort, LOCAL_AUTH,
777 "TCP port used by Skinny Station protocol", "nat skinny_port [port]"},
776 {"same_ports", NULL, NatOption, LOCAL_AUTH,
777 "try to leave port numbers unchanged", "nat same_ports yes|no",
778 (const void *) PKT_ALIAS_SAME_PORTS},
779 {"target", NULL, nat_SetTarget, LOCAL_AUTH,
780 "Default address for incoming connections", "nat target addr" },
781 {"unregistered_only", NULL, NatOption, LOCAL_AUTH,
782 "translate unregistered (private) IP address space only",
783 "nat unregistered_only yes|no",

--- 2418 unchanged lines hidden ---
778 {"same_ports", NULL, NatOption, LOCAL_AUTH,
779 "try to leave port numbers unchanged", "nat same_ports yes|no",
780 (const void *) PKT_ALIAS_SAME_PORTS},
781 {"target", NULL, nat_SetTarget, LOCAL_AUTH,
782 "Default address for incoming connections", "nat target addr" },
783 {"unregistered_only", NULL, NatOption, LOCAL_AUTH,
784 "translate unregistered (private) IP address space only",
785 "nat unregistered_only yes|no",

--- 2418 unchanged lines hidden ---