diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-17 13:52:53 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-17 13:52:53 -0300 |
commit | 40ecb8bc835432c0fcc500e0201b0aa7c04e9bbe (patch) | |
tree | 84109b0bb28a28b246775d3c80a729e18a678a8e /sys/net | |
parent | e46bfdb12094486aefecb3b9644da7fddfdeb6fe (diff) | |
download | FreeBSD-src-40ecb8bc835432c0fcc500e0201b0aa7c04e9bbe.zip FreeBSD-src-40ecb8bc835432c0fcc500e0201b0aa7c04e9bbe.tar.gz |
Importing pfSense patch dscp.RELENG_10.diff
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfvar.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 4a5f2a0..56097068 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -566,6 +566,29 @@ struct pf_rule { u_int8_t allow_opts; u_int8_t rt; u_int8_t return_ttl; + +#ifndef DSCP_EF +/* Copied from altq_cdnr.h */ +/* diffserve code points */ +#define DSCP_MASK 0xfc +#define DSCP_CUMASK 0x03 +#define DSCP_VA 0xb0 +#define DSCP_EF 0xb8 +#define DSCP_AF11 0x28 +#define DSCP_AF12 0x30 +#define DSCP_AF13 0x38 +#define DSCP_AF21 0x48 +#define DSCP_AF22 0x50 +#define DSCP_AF23 0x58 +#define DSCP_AF31 0x68 +#define DSCP_AF32 0x70 +#define DSCP_AF33 0x78 +#define DSCP_AF41 0x88 +#define DSCP_AF42 0x90 +#define DSCP_AF43 0x98 +#define AF_CLASSMASK 0xe0 +#define AF_DROPPRECMASK 0x18 +#endif u_int8_t tos; u_int8_t set_tos; u_int8_t anchor_relative; @@ -604,6 +627,13 @@ struct pf_rule { #define PFRULE_REASSEMBLE_TCP 0x1000 #define PFRULE_SET_TOS 0x2000 +/* rule flags for TOS or DSCP differentiation */ +#define PFRULE_TOS 0x2000 +#define PFRULE_DSCP 0x4000 + +/* rule flags for handling ALTQ hashing required by certain disciplines */ +#define PFRULE_ALTQ_HASH 0x8000 + /* rule flags again */ #define PFRULE_IFBOUND 0x00010000 /* if-bound */ #define PFRULE_STATESLOPPY 0x00020000 /* sloppy state tracking */ |