Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / linux / netfilter / xt_dscp.h
blobf49bc1a648dc5fd505551e0d4521fcb3f622de52
1 /* x_tables module for matching the IPv4/IPv6 DSCP field
3 * (C) 2002 Harald Welte <laforge@gnumonks.org>
4 * This software is distributed under GNU GPL v2, 1991
6 * See RFC2474 for a description of the DSCP field within the IP Header.
8 * xt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp
9 */
10 #ifndef _XT_DSCP_H
11 #define _XT_DSCP_H
13 #define XT_DSCP_MASK 0xfc /* 11111100 */
14 #define XT_DSCP_SHIFT 2
15 #define XT_DSCP_MAX 0x3f /* 00111111 */
17 /* match info */
18 struct xt_dscp_info {
19 u_int8_t dscp;
20 u_int8_t invert;
23 struct xt_tos_match_info {
24 u_int8_t tos_mask;
25 u_int8_t tos_value;
26 u_int8_t invert;
29 #endif /* _XT_DSCP_H */