summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-06-09 20:20:59 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-06-09 20:20:59 +0000
commit0545c7c5e14bdc166962f419da77e65fa8d72b8e (patch)
treec0002c30bb59f41e75d12d0e7483b0773035515c /sys/net/pfvar.h
parent9690aa985d8384814a46db35dc146490235b26b7 (diff)
Make pf_nat.saddr/daddr a pf_rule_addr instead of pf_addr_wrap, so it
includes ports and operator.
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 0741f8f4ac0..39abee4967c 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.81 2002/06/09 08:53:08 pb Exp $ */
+/* $OpenBSD: pfvar.h,v 1.82 2002/06/09 20:20:58 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -328,18 +328,14 @@ struct pf_tree_node {
struct pf_nat {
+ struct pf_rule_addr src;
+ struct pf_rule_addr dst;
+ struct pf_addr_wrap raddr;
char ifname[IFNAMSIZ];
struct ifnet *ifp;
TAILQ_ENTRY(pf_nat) entries;
- struct pf_addr_wrap saddr;
- struct pf_addr_wrap daddr;
- struct pf_addr_wrap raddr;
- struct pf_addr smask;
- struct pf_addr dmask;
u_int8_t af;
u_int8_t proto;
- u_int8_t snot;
- u_int8_t dnot;
u_int8_t ifnot;
u_int8_t no;
};