Deleted Added
full compact
nat.c (187770) nat.c (187983)
1/*
2 * Copyright (c) 2002-2003 Luigi Rizzo
3 * Copyright (c) 1996 Alex Nash, Paul Traina, Poul-Henning Kamp
4 * Copyright (c) 1994 Ugen J.S.Antsilevich
5 *
6 * Idea and grammar partially left from:
7 * Copyright (c) 1993 Daniel Boulet
8 *
9 * Redistribution and use in source forms, with and without modification,
10 * are permitted provided that this entire comment appears intact.
11 *
12 * Redistribution in binary form may occur without any restrictions.
13 * Obviously, it would be nice if you gave credit where credit is due
14 * but requiring it would be too onerous.
15 *
16 * This software is provided ``AS IS'' without any warranties of any kind.
17 *
18 * NEW command line interface for IP firewall facility
19 *
1/*
2 * Copyright (c) 2002-2003 Luigi Rizzo
3 * Copyright (c) 1996 Alex Nash, Paul Traina, Poul-Henning Kamp
4 * Copyright (c) 1994 Ugen J.S.Antsilevich
5 *
6 * Idea and grammar partially left from:
7 * Copyright (c) 1993 Daniel Boulet
8 *
9 * Redistribution and use in source forms, with and without modification,
10 * are permitted provided that this entire comment appears intact.
11 *
12 * Redistribution in binary form may occur without any restrictions.
13 * Obviously, it would be nice if you gave credit where credit is due
14 * but requiring it would be too onerous.
15 *
16 * This software is provided ``AS IS'' without any warranties of any kind.
17 *
18 * NEW command line interface for IP firewall facility
19 *
20 * $FreeBSD: head/sbin/ipfw/nat.c 187770 2009-01-27 12:01:30Z luigi $
20 * $FreeBSD: head/sbin/ipfw/nat.c 187983 2009-02-01 16:00:49Z luigi $
21 *
22 * In-kernel nat support
23 */
24
25#include <sys/types.h>
26#include <sys/socket.h>
21 *
22 * In-kernel nat support
23 */
24
25#include <sys/types.h>
26#include <sys/socket.h>
27#include <sys/sockio.h>
28#include <sys/sysctl.h>
29
30#include "ipfw2.h"
31
32#include <ctype.h>
33#include <err.h>
34#include <netdb.h>
35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>
38#include <sysexits.h>
39
40#define IPFW_INTERNAL /* Access to protected structures in ip_fw.h. */
41
42#include <net/if.h>
43#include <net/if_dl.h>
44#include <net/route.h> /* def. of struct route */
45#include <netinet/in.h>
27#include <sys/sysctl.h>
28
29#include "ipfw2.h"
30
31#include <ctype.h>
32#include <err.h>
33#include <netdb.h>
34#include <stdio.h>
35#include <stdlib.h>
36#include <string.h>
37#include <sysexits.h>
38
39#define IPFW_INTERNAL /* Access to protected structures in ip_fw.h. */
40
41#include <net/if.h>
42#include <net/if_dl.h>
43#include <net/route.h> /* def. of struct route */
44#include <netinet/in.h>
46#include <netinet/in_systm.h>
47#include <netinet/ip_fw.h>
48#include <arpa/inet.h>
49#include <alias.h>
50
51static struct _s_x nat_params[] = {
52 { "ip", TOK_IP },
53 { "if", TOK_IF },
54 { "log", TOK_ALOG },

--- 851 unchanged lines hidden ---
45#include <netinet/ip_fw.h>
46#include <arpa/inet.h>
47#include <alias.h>
48
49static struct _s_x nat_params[] = {
50 { "ip", TOK_IP },
51 { "if", TOK_IF },
52 { "log", TOK_ALOG },

--- 851 unchanged lines hidden ---