xt_dscp.h revision 350661a6eb089f3e54e67e022db9e16ea280499f
1659ceec4628056d3c6e7076c850fba1c412cbb8ayangguo@chromium.org/* x_tables module for matching the IPv4/IPv6 DSCP field 29a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * 39a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * (C) 2002 Harald Welte <laforge@gnumonks.org> 49a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * This software is distributed under GNU GPL v2, 1991 59a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * 69a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * See RFC2474 for a description of the DSCP field within the IP Header. 79a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * 89a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com * xt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp 99a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com*/ 109a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#ifndef _XT_DSCP_H 119a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#define _XT_DSCP_H 129a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com 139a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#include <linux/types.h> 149a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com 159a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#define XT_DSCP_MASK 0xfc /* 11111100 */ 169a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#define XT_DSCP_SHIFT 2 179a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#define XT_DSCP_MAX 0x3f /* 00111111 */ 189a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com 199a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com/* match info */ 209a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.comstruct xt_dscp_info { 219a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com __u8 dscp; 229a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com __u8 invert; 239a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com}; 249a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com 259a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.comstruct xt_tos_match_info { 269a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com __u8 tos_mask; 279a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com __u8 tos_value; 289a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com __u8 invert; 299a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com}; 30196eb601290dc49c3754da728dc58700dff2de1bmachenbach@chromium.org 319a4089a092cad9ff23b6416b92cd5d818dc101d1mads.s.ager@gmail.com#endif /* _XT_DSCP_H */ 32196eb601290dc49c3754da728dc58700dff2de1bmachenbach@chromium.org