summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-17 13:53:13 -0300
committerRenato Botelho <renato@netgate.com>2015-08-17 13:53:13 -0300
commit14cc93f3403d906f596ddc18d531bb13f053fa76 (patch)
treeb10a13ccfcf21df206a5471e9b3a8b11ec927232 /sys/net
parentfa9181508d9f4170f8a35bdfbe349210c30dbceb (diff)
downloadFreeBSD-src-14cc93f3403d906f596ddc18d531bb13f053fa76.zip
FreeBSD-src-14cc93f3403d906f596ddc18d531bb13f053fa76.tar.gz
Importing pfSense patch divert.RELENG_10.diff
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfvar.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 01efaa0..3be7615 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -761,7 +761,13 @@ struct pf_state {
u_int64_t id;
u_int32_t creatorid;
u_int8_t direction;
- u_int8_t pad[3];
+ u_int8_t pad[2];
+ u_int8_t local_flags;
+#define PFSTATE_DIVERT_ALTQ 0x10
+#define PFSTATE_DIVERT_DNCOOKIE 0x20
+#define PFSTATE_DIVERT_ACTION 0x40
+#define PFSTATE_DIVERT_TAG 0x80
+#define PFSTATE_DIVERT_MASK 0xFF00
u_int refs;
TAILQ_ENTRY(pf_state) sync_list;
@@ -788,6 +794,7 @@ struct pf_state {
u_int32_t pdnpipe;
u_int32_t dnpipe;
u_int16_t tag;
+ u_int16_t divert_cookie;
u_int8_t log;
u_int8_t state_flags;
#define PFSTATE_ALLOWOPTS 0x01
@@ -800,7 +807,7 @@ struct pf_state {
/* XXX */
u_int8_t sync_updates;
- u_int8_t _tail[3];
+ u_int8_t _tail;
};
/*
OpenPOWER on IntegriCloud