Deleted Added
full compact
ip_nat.c (88876) ip_nat.c (89316)
1/*
2 * Copyright (C) 1995-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * Added redirect stuff and a LOT of bug fixes. (mcn@EnGarde.com)
7 */
8
9#if defined(__FreeBSD__) && defined(KERNEL) && !defined(_KERNEL)
10#define _KERNEL
11#endif
12
13#include <sys/errno.h>
14#include <sys/types.h>
15#include <sys/param.h>
16#include <sys/time.h>
1/*
2 * Copyright (C) 1995-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * Added redirect stuff and a LOT of bug fixes. (mcn@EnGarde.com)
7 */
8
9#if defined(__FreeBSD__) && defined(KERNEL) && !defined(_KERNEL)
10#define _KERNEL
11#endif
12
13#include <sys/errno.h>
14#include <sys/types.h>
15#include <sys/param.h>
16#include <sys/time.h>
17#if (__FreeBSD_version >= 500028)
18#include <sys/queue.h>
19#endif
17#include <sys/file.h>
18#if defined(__NetBSD__) && (NetBSD >= 199905) && !defined(IPFILTER_LKM) && \
19 defined(_KERNEL)
20# include "opt_ipfilter_log.h"
21#endif
22#if !defined(_KERNEL) && !defined(KERNEL)
23# include <stdio.h>
24# include <string.h>

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

104# define MIN(a,b) (((a)<(b))?(a):(b))
105#endif
106#undef SOCKADDR_IN
107#define SOCKADDR_IN struct sockaddr_in
108
109#if !defined(lint)
110static const char sccsid[] = "@(#)ip_nat.c 1.11 6/5/96 (C) 1995 Darren Reed";
111/* static const char rcsid[] = "@(#)$Id: ip_nat.c,v 2.37.2.44 2001/07/21 07:17:22 darrenr Exp $"; */
20#include <sys/file.h>
21#if defined(__NetBSD__) && (NetBSD >= 199905) && !defined(IPFILTER_LKM) && \
22 defined(_KERNEL)
23# include "opt_ipfilter_log.h"
24#endif
25#if !defined(_KERNEL) && !defined(KERNEL)
26# include <stdio.h>
27# include <string.h>

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

107# define MIN(a,b) (((a)<(b))?(a):(b))
108#endif
109#undef SOCKADDR_IN
110#define SOCKADDR_IN struct sockaddr_in
111
112#if !defined(lint)
113static const char sccsid[] = "@(#)ip_nat.c 1.11 6/5/96 (C) 1995 Darren Reed";
114/* static const char rcsid[] = "@(#)$Id: ip_nat.c,v 2.37.2.44 2001/07/21 07:17:22 darrenr Exp $"; */
112static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.c 88876 2002-01-04 12:32:34Z darrenr $";
115static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.c 89316 2002-01-13 21:37:49Z alfred $";
113#endif
114
115nat_t **nat_table[2] = { NULL, NULL },
116 *nat_instances = NULL;
117ipnat_t *nat_list = NULL;
118u_int ipf_nattable_sz = NAT_TABLE_SZ;
119u_int ipf_natrules_sz = NAT_SIZE;
120u_int ipf_rdrrules_sz = RDR_SIZE;

--- 2642 unchanged lines hidden ---
116#endif
117
118nat_t **nat_table[2] = { NULL, NULL },
119 *nat_instances = NULL;
120ipnat_t *nat_list = NULL;
121u_int ipf_nattable_sz = NAT_TABLE_SZ;
122u_int ipf_natrules_sz = NAT_SIZE;
123u_int ipf_rdrrules_sz = RDR_SIZE;

--- 2642 unchanged lines hidden ---