]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/ip6.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / netinet / ip6.h
index 3982daf0d5694854b2800004e110c719807ec0b6..a4c4ea92ef2db078b4df85e44a3b252f4a53aa57 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2013 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2016 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -139,6 +139,12 @@ struct ip6_hdr {
 #define IP6TOS_ECT             0x02    /* ECN-capable transport */
 #endif
 
+/*
+ * To access the 6 bits of the DSCP value in the 32 bits ip6_flow field
+ */
+#define        IP6FLOW_DSCP_MASK       0x0fc00000
+#define        IP6FLOW_DSCP_SHIFT      22
+
 /*
  * Extension Headers
  */