File Index
Files and directories
Sign in
FILE

xt_dscp.h

File preview with syntax highlighting.

linux-6.19.14/include/uapi/linux/netfilter/xt_dscp.h C
 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 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
14#include <linux/types.h>
15
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 {
22	__u8 dscp;
23	__u8 invert;
24};
25
26struct xt_tos_match_info {
27	__u8 tos_mask;
28	__u8 tos_value;
29	__u8 invert;
30};
31
32#endif /* _XT_DSCP_H */
~/ Read-only file preview.