License cleanup: add SPDX license identifier to uapi header files with a license
[linux-2.6-block.git] / include / uapi / linux / netfilter / xt_dscp.h
CommitLineData
e2be04c7 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
9ba16276
YK
2/* x_tables module for matching the IPv4/IPv6 DSCP field
3 *
4 * (C) 2002 Harald Welte <laforge@gnumonks.org>
5 * This software is distributed under GNU GPL v2, 1991
6 *
7 * See RFC2474 for a description of the DSCP field within the IP Header.
8 *
9 * xt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp
10*/
11#ifndef _XT_DSCP_H
12#define _XT_DSCP_H
13
60c195c7
AB
14#include <linux/types.h>
15
9ba16276
YK
16#define XT_DSCP_MASK 0xfc /* 11111100 */
17#define XT_DSCP_SHIFT 2
18#define XT_DSCP_MAX 0x3f /* 00111111 */
19
20/* match info */
21struct xt_dscp_info {
60c195c7
AB
22 __u8 dscp;
23 __u8 invert;
9ba16276
YK
24};
25
f1095ab5 26struct xt_tos_match_info {
60c195c7
AB
27 __u8 tos_mask;
28 __u8 tos_value;
29 __u8 invert;
f1095ab5
JE
30};
31
9ba16276 32#endif /* _XT_DSCP_H */