blob: 15f8932ad5ce64ea4adceaa6dd764dda9c233bf6 [file] [log] [blame]
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001/* x_tables module for matching the IPv4/IPv6 DSCP field
2 *
3 * (C) 2002 Harald Welte <laforge@gnumonks.org>
4 * This software is distributed under GNU GPL v2, 1991
5 *
6 * See RFC2474 for a description of the DSCP field within the IP Header.
7 *
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
12
Arnd Bergmann60c195c2009-02-26 00:51:43 +010013#include <linux/types.h>
14
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -070015#define XT_DSCP_MASK 0xfc /* 11111100 */
16#define XT_DSCP_SHIFT 2
17#define XT_DSCP_MAX 0x3f /* 00111111 */
18
19/* match info */
20struct xt_dscp_info {
Arnd Bergmann60c195c2009-02-26 00:51:43 +010021 __u8 dscp;
22 __u8 invert;
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -070023};
24
Jan Engelhardtf1095ab2007-12-04 23:38:30 -080025struct xt_tos_match_info {
Arnd Bergmann60c195c2009-02-26 00:51:43 +010026 __u8 tos_mask;
27 __u8 tos_value;
28 __u8 invert;
Jan Engelhardtf1095ab2007-12-04 23:38:30 -080029};
30
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -070031#endif /* _XT_DSCP_H */