[NETFILTER]: IPv6 capable xt_tos v1 match

Extends the xt_dscp match by xt_tos v1 to add support for selectively
matching any bit in the IPv4 TOS and IPv6 Priority fields. (ipt_tos
and xt_dscp only accepted a limited range of possible values.)

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jan Engelhardt
2007-12-04 23:38:30 -08:00
committed by David S. Miller
parent c9fd496809
commit f1095ab51d
2 changed files with 38 additions and 0 deletions

View File

@@ -20,4 +20,10 @@ struct xt_dscp_info {
u_int8_t invert;
};
struct xt_tos_match_info {
u_int8_t tos_mask;
u_int8_t tos_value;
u_int8_t invert;
};
#endif /* _XT_DSCP_H */