Deleted Added
full compact
ip_fw_nat.c (185845) ip_fw_nat.c (185895)
1/*-
2 * Copyright (c) 2008 Paolo Pisati
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Paolo Pisati
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/netinet/ip_fw_nat.c 185845 2008-12-10 08:23:47Z kmacy $");
28__FBSDID("$FreeBSD: head/sys/netinet/ip_fw_nat.c 185895 2008-12-10 23:12:39Z zec $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/condvar.h>
33#include <sys/eventhandler.h>
34#include <sys/malloc.h>
35#include <sys/mbuf.h>
36#include <sys/kernel.h>

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

66#include <netinet/udp_var.h>
67
68#include <machine/in_cksum.h> /* XXX for in_cksum */
69
70MALLOC_DECLARE(M_IPFW);
71
72extern struct ip_fw_chain layer3_chain;
73
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/condvar.h>
33#include <sys/eventhandler.h>
34#include <sys/malloc.h>
35#include <sys/mbuf.h>
36#include <sys/kernel.h>

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

66#include <netinet/udp_var.h>
67
68#include <machine/in_cksum.h> /* XXX for in_cksum */
69
70MALLOC_DECLARE(M_IPFW);
71
72extern struct ip_fw_chain layer3_chain;
73
74#ifdef VIMAGE_GLOBALS
74static eventhandler_tag ifaddr_event_tag;
75static eventhandler_tag ifaddr_event_tag;
76#endif
75
76extern ipfw_nat_t *ipfw_nat_ptr;
77extern ipfw_nat_cfg_t *ipfw_nat_cfg_ptr;
78extern ipfw_nat_cfg_t *ipfw_nat_del_ptr;
79extern ipfw_nat_cfg_t *ipfw_nat_get_cfg_ptr;
80extern ipfw_nat_cfg_t *ipfw_nat_get_log_ptr;
81
82static void

--- 581 unchanged lines hidden ---
77
78extern ipfw_nat_t *ipfw_nat_ptr;
79extern ipfw_nat_cfg_t *ipfw_nat_cfg_ptr;
80extern ipfw_nat_cfg_t *ipfw_nat_del_ptr;
81extern ipfw_nat_cfg_t *ipfw_nat_get_cfg_ptr;
82extern ipfw_nat_cfg_t *ipfw_nat_get_log_ptr;
83
84static void

--- 581 unchanged lines hidden ---