aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_fw.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2000-01-08 11:31:43 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2000-01-08 11:31:43 +0000
commitec8fac2acf675e729598b6f8100ebd8405272139 (patch)
tree717080407e7921506ae7ba29a89e337d85b114f7 /sys/netinet/ip_fw.h
parentd1f04b29f01467b61d8ba7389103161b9e80abf3 (diff)
downloadsrc-ec8fac2acf675e729598b6f8100ebd8405272139.tar.gz
src-ec8fac2acf675e729598b6f8100ebd8405272139.zip
Add ipfw hooks for the new dummynet features.
Support masks on TCP/UDP ports. Minor cleanup of ip_fw_chk() to avoid repeated calls to PULLUP_TO at each rule.
Notes
Notes: svn path=/head/; revision=55599
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r--sys/netinet/ip_fw.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 11c56a48a54f..ffd1d0405221 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -171,8 +171,11 @@ struct ip_fw_chain {
#define IP_FW_F_GID 0x00400000 /* filter by gid */
#define IP_FW_F_RND_MATCH 0x00800000 /* probabilistic rule match */
+#define IP_FW_F_SMSK 0x01000000 /* src-port + mask */
+#define IP_FW_F_DMSK 0x02000000 /* dst-port + mask */
+#define IP_FW_F_KEEP_S 0x04000000 /* keep state */
-#define IP_FW_F_MASK 0x00FFFFFF /* All possible flag bits mask */
+#define IP_FW_F_MASK 0x03FFFFFF /* All possible flag bits mask */
/*
* For backwards compatibility with rules specifying "via iface" but