svn commit: r235805 - stable/9/sys/netinet
Xin LI
delphij at FreeBSD.org
Tue May 22 19:53:25 UTC 2012
Author: delphij
Date: Tue May 22 19:53:25 2012
New Revision: 235805
URL: http://svn.freebsd.org/changeset/base/235805
Log:
MFC r235036:
Add ToS definitions for DiffServ Codepoints as per RFC2474.
Obtained from: OpenBSD
Modified:
stable/9/sys/netinet/ip.h
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/ip.h
==============================================================================
--- stable/9/sys/netinet/ip.h Tue May 22 19:50:21 2012 (r235804)
+++ stable/9/sys/netinet/ip.h Tue May 22 19:53:25 2012 (r235805)
@@ -92,6 +92,31 @@ struct ip {
#define IPTOS_PREC_ROUTINE 0x00
/*
+ * Definitions for DiffServ Codepoints as per RFC2474
+ */
+#define IPTOS_DSCP_CS0 0x00
+#define IPTOS_DSCP_CS1 0x20
+#define IPTOS_DSCP_AF11 0x28
+#define IPTOS_DSCP_AF12 0x30
+#define IPTOS_DSCP_AF13 0x38
+#define IPTOS_DSCP_CS2 0x40
+#define IPTOS_DSCP_AF21 0x48
+#define IPTOS_DSCP_AF22 0x50
+#define IPTOS_DSCP_AF23 0x58
+#define IPTOS_DSCP_CS3 0x60
+#define IPTOS_DSCP_AF31 0x68
+#define IPTOS_DSCP_AF32 0x70
+#define IPTOS_DSCP_AF33 0x78
+#define IPTOS_DSCP_CS4 0x80
+#define IPTOS_DSCP_AF41 0x88
+#define IPTOS_DSCP_AF42 0x90
+#define IPTOS_DSCP_AF43 0x98
+#define IPTOS_DSCP_CS5 0xa0
+#define IPTOS_DSCP_EF 0xb8
+#define IPTOS_DSCP_CS6 0xc0
+#define IPTOS_DSCP_CS7 0xe0
+
+/*
* ECN (Explicit Congestion Notification) codepoints in RFC3168 mapped to the
* lower 2 bits of the TOS field.
*/
More information about the svn-src-stable-9
mailing list