diff options
author | luigi <luigi@FreeBSD.org> | 2000-01-08 11:31:43 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2000-01-08 11:31:43 +0000 |
commit | dba91948d0bc7911c09aa3cc2cdcda90833faada (patch) | |
tree | b603422213f5e17a7b4092c53696b434635f857f /sys/netinet/ip_fw.h | |
parent | 7f185791a639766b0028bb723c7a8c20d76b4cfd (diff) | |
download | FreeBSD-src-dba91948d0bc7911c09aa3cc2cdcda90833faada.zip FreeBSD-src-dba91948d0bc7911c09aa3cc2cdcda90833faada.tar.gz |
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.
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r-- | sys/netinet/ip_fw.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index 11c56a4..ffd1d04 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 |