~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to include/linux/netfilter/xt_dscp.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 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
 
 
13
#include <linux/types.h>
 
14
 
 
15
#define XT_DSCP_MASK    0xfc    /* 11111100 */
 
16
#define XT_DSCP_SHIFT   2
 
17
#define XT_DSCP_MAX     0x3f    /* 00111111 */
 
18
 
 
19
/* match info */
 
20
struct xt_dscp_info {
 
21
        __u8 dscp;
 
22
        __u8 invert;
 
23
};
 
24
 
 
25
struct xt_tos_match_info {
 
26
        __u8 tos_mask;
 
27
        __u8 tos_value;
 
28
        __u8 invert;
 
29
};
 
30
 
 
31
#endif /* _XT_DSCP_H */