summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_nat.h
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2001-02-04 14:15:48 +0000
committerdarrenr <darrenr@FreeBSD.org>2001-02-04 14:15:48 +0000
commit013eb6ba3efef4ab5c0b7012a20730ab139e1283 (patch)
treeb79d7a56870dc56ab3960e08c0eb38d3bc9221a1 /sys/netinet/ip_nat.h
parentf0af50f6d83d477f68fe4441d17c0d48d2142627 (diff)
downloadFreeBSD-src-013eb6ba3efef4ab5c0b7012a20730ab139e1283.zip
FreeBSD-src-013eb6ba3efef4ab5c0b7012a20730ab139e1283.tar.gz
Update IP Filter kernel source
Diffstat (limited to 'sys/netinet/ip_nat.h')
-rw-r--r--sys/netinet/ip_nat.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/ip_nat.h b/sys/netinet/ip_nat.h
index 8e166df..22f8503 100644
--- a/sys/netinet/ip_nat.h
+++ b/sys/netinet/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