ip_nat.h (92685) | ip_nat.h (95418) |
---|---|
1/* 2 * Copyright (C) 1995-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. 5 * 6 * @(#)ip_nat.h 1.5 2/4/96 7 * $Id: ip_nat.h,v 2.17.2.14 2000/11/18 03:58:04 darrenr Exp $ | 1/* 2 * Copyright (C) 1995-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. 5 * 6 * @(#)ip_nat.h 1.5 2/4/96 7 * $Id: ip_nat.h,v 2.17.2.14 2000/11/18 03:58:04 darrenr Exp $ |
8 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.h 92685 2002-03-19 11:44:16Z darrenr $ | 8 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_nat.h 95418 2002-04-25 03:31:39Z darrenr $ |
9 */ 10 11#ifndef __IP_NAT_H__ 12#define __IP_NAT_H__ 13 14#ifndef SOLARIS 15#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 16#endif --- 255 unchanged lines hidden (view full) --- 272 /* Do it twice */ \ 273 (s1) = ((s1) & 0xffff) + ((s1) >> 16); \ 274 (s2) = ((s2) & 0xffff) + ((s2) >> 16); \ 275 /* Because ~1 == -2, We really need ~1 == -1 */ \ 276 if ((s1) > (s2)) (s2)--; \ 277 (sd) = (s2) - (s1); \ 278 (sd) = ((sd) & 0xffff) + ((sd) >> 16); } 279 | 9 */ 10 11#ifndef __IP_NAT_H__ 12#define __IP_NAT_H__ 13 14#ifndef SOLARIS 15#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 16#endif --- 255 unchanged lines hidden (view full) --- 272 /* Do it twice */ \ 273 (s1) = ((s1) & 0xffff) + ((s1) >> 16); \ 274 (s2) = ((s2) & 0xffff) + ((s2) >> 16); \ 275 /* Because ~1 == -2, We really need ~1 == -1 */ \ 276 if ((s1) > (s2)) (s2)--; \ 277 (sd) = (s2) - (s1); \ 278 (sd) = ((sd) & 0xffff) + ((sd) >> 16); } 279 |
280#define NAT_SYSSPACE 0x80000000 281#define NAT_LOCKHELD 0x40000000 |
|
280 281extern u_int ipf_nattable_sz; 282extern u_int ipf_natrules_sz; 283extern u_int ipf_rdrrules_sz; 284extern int fr_nat_lock; 285extern void ip_natsync __P((void *)); 286extern u_long fr_defnatage; 287extern u_long fr_defnaticmpage; --- 36 unchanged lines hidden --- | 282 283extern u_int ipf_nattable_sz; 284extern u_int ipf_natrules_sz; 285extern u_int ipf_rdrrules_sz; 286extern int fr_nat_lock; 287extern void ip_natsync __P((void *)); 288extern u_long fr_defnatage; 289extern u_long fr_defnaticmpage; --- 36 unchanged lines hidden --- |