Deleted Added
full compact
ip_fw_nat.c (195699) ip_fw_nat.c (195727)
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/ipfw/ip_fw_nat.c 195699 2009-07-14 22:48:30Z rwatson $");
28__FBSDID("$FreeBSD: head/sys/netinet/ipfw/ip_fw_nat.c 195727 2009-07-16 21:13:04Z rwatson $");
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>

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

65#include <netinet/udp.h>
66#include <netinet/udp_var.h>
67
68#include <machine/in_cksum.h> /* XXX for in_cksum */
69
70MALLOC_DECLARE(M_IPFW);
71
72static VNET_DEFINE(eventhandler_tag, ifaddr_event_tag);
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>

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

65#include <netinet/udp.h>
66#include <netinet/udp_var.h>
67
68#include <machine/in_cksum.h> /* XXX for in_cksum */
69
70MALLOC_DECLARE(M_IPFW);
71
72static VNET_DEFINE(eventhandler_tag, ifaddr_event_tag);
73#define V_ifaddr_event_tag VNET_GET(ifaddr_event_tag)
73#define V_ifaddr_event_tag VNET(ifaddr_event_tag)
74
75extern ipfw_nat_t *ipfw_nat_ptr;
76extern ipfw_nat_cfg_t *ipfw_nat_cfg_ptr;
77extern ipfw_nat_cfg_t *ipfw_nat_del_ptr;
78extern ipfw_nat_cfg_t *ipfw_nat_get_cfg_ptr;
79extern ipfw_nat_cfg_t *ipfw_nat_get_log_ptr;
80
81static void

--- 577 unchanged lines hidden ---
74
75extern ipfw_nat_t *ipfw_nat_ptr;
76extern ipfw_nat_cfg_t *ipfw_nat_cfg_ptr;
77extern ipfw_nat_cfg_t *ipfw_nat_del_ptr;
78extern ipfw_nat_cfg_t *ipfw_nat_get_cfg_ptr;
79extern ipfw_nat_cfg_t *ipfw_nat_get_log_ptr;
80
81static void

--- 577 unchanged lines hidden ---