Deleted Added
full compact
ip_nat.c (80482) ip_nat.c (87394)
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

--- 95 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 $"; */
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

--- 95 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 $"; */
112static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.c 80482 2001-07-28 11:58:26Z darrenr $";
112static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.c 87394 2001-12-05 10:46:24Z guido $";
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;

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

897 nat->nat_phnext[0] = NULL;
898 nat->nat_phnext[1] = NULL;
899 fr = nat->nat_fr;
900 nat->nat_fr = NULL;
901 aps = nat->nat_aps;
902 nat->nat_aps = NULL;
903 in = nat->nat_ptr;
904 nat->nat_ptr = NULL;
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;

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

897 nat->nat_phnext[0] = NULL;
898 nat->nat_phnext[1] = NULL;
899 fr = nat->nat_fr;
900 nat->nat_fr = NULL;
901 aps = nat->nat_aps;
902 nat->nat_aps = NULL;
903 in = nat->nat_ptr;
904 nat->nat_ptr = NULL;
905 nat->nat_hm = NULL;
905 nat->nat_data = NULL;
906
907 /*
908 * Restore the rule associated with this nat session
909 */
910 if (in) {
911 KMALLOC(in, ipnat_t *);
912 if (in == NULL) {

--- 1849 unchanged lines hidden ---
906 nat->nat_data = NULL;
907
908 /*
909 * Restore the rule associated with this nat session
910 */
911 if (in) {
912 KMALLOC(in, ipnat_t *);
913 if (in == NULL) {

--- 1849 unchanged lines hidden ---