summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/ip_nat.h
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2001-02-04 14:25:38 +0000
committerdarrenr <darrenr@FreeBSD.org>2001-02-04 14:25:38 +0000
commit5e62aa9b3dacb0e670998fad60638b79751aff14 (patch)
tree385e237f9b94bd1f0ddf97318d3ced6f6e85ec8b /contrib/ipfilter/ip_nat.h
parent77a62e2a58642d4f2e31e9cfc354994062d9777b (diff)
downloadFreeBSD-src-5e62aa9b3dacb0e670998fad60638b79751aff14.zip
FreeBSD-src-5e62aa9b3dacb0e670998fad60638b79751aff14.tar.gz
Import IP Filter update
Diffstat (limited to 'contrib/ipfilter/ip_nat.h')
-rw-r--r--contrib/ipfilter/ip_nat.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/ipfilter/ip_nat.h b/contrib/ipfilter/ip_nat.h
index 8e166df..22f8503 100644
--- a/contrib/ipfilter/ip_nat.h
+++ b/contrib/ipfilter/ip_nat.h
@@ -6,7 +6,7 @@
* to the original author and the contributors.
*
* @(#)ip_nat.h 1.5 2/4/96
- * $Id: ip_nat.h,v 2.17.2.10 2000/10/27 14:06:51 darrenr Exp $
+ * $Id: ip_nat.h,v 2.17.2.14 2000/11/18 03:58:04 darrenr Exp $
*/
#ifndef __IP_NAT_H__
@@ -85,7 +85,7 @@ typedef struct nat {
void *nat_ifp;
int nat_dir;
char nat_ifname[IFNAMSIZ];
-#if SOLARIS || defined(_sgi)
+#if SOLARIS || defined(__sgi)
kmutex_t nat_lock;
#endif
} nat_t;
@@ -247,6 +247,7 @@ typedef struct natlog {
#define NL_NEWRDR NAT_REDIRECT
#define NL_NEWBIMAP NAT_BIMAP
#define NL_NEWBLOCK NAT_MAPBLK
+#define NL_FLUSH 0xfffe
#define NL_EXPIRE 0xffff
#define NAT_HASH_FN(k,l,m) (((k) + ((k) >> 12) + l) % (m))
@@ -285,9 +286,9 @@ extern int nat_ioctl __P((caddr_t, int, int));
extern int nat_init __P((void));
extern nat_t *nat_new __P((ipnat_t *, ip_t *, fr_info_t *, u_int, int));
extern nat_t *nat_outlookup __P((void *, u_int, u_int, struct in_addr,
- struct in_addr, u_32_t));
+ struct in_addr, u_32_t, int));
extern nat_t *nat_inlookup __P((void *, u_int, u_int, struct in_addr,
- struct in_addr, u_32_t));
+ struct in_addr, u_32_t, int));
extern nat_t *nat_maplookup __P((void *, u_int, struct in_addr,
struct in_addr));
extern nat_t *nat_lookupredir __P((natlookup_t *));
OpenPOWER on IntegriCloud