]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
add new version of ipt_DSCP.h
authorHarald Welte <laforge@gnumonks.org>
Sun, 17 Feb 2002 21:32:13 +0000 (21:32 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sun, 17 Feb 2002 21:32:13 +0000 (21:32 +0000)
include/linux/netfilter_ipv4/ipt_DSCP.h

index 439ffe94ee896ec19c7426356a7b6b84d26bd29e..361eb2af422a9665cbb14dcc7f225be4cade5aae 100644 (file)
@@ -6,13 +6,18 @@
  * This software is distributed under GNU GPL v2, 1991
  * 
  * ipt_DSCP.h borrowed heavily from ipt_TOS.h  11/09/2000
+ *
+ * $Id: ipt_DSCP.h,v 1.3 2002/02/17 19:56:28 laforge Exp $
 */
 #ifndef _IPT_DSCP_H
 #define _IPT_DSCP_H
 
-#define IPT_DSCP_MASK  0x4f
+#define IPT_DSCP_MASK  0xf4    /* 11111100 */
+#define IPT_DSCP_SHIFT 2       /* shift DSCP two bits for ECN */
+#define IPT_DSCP_MAX   0x3f    /* 00111111 */
 
 struct ipt_DSCP_info {
        u_int8_t dscp;
 };
 
+#endif /* _IPT_DSCP_H */