packets: Add ECN constants.
authorJesse Gross <jesse@nicira.com>
Wed, 19 Sep 2012 16:36:19 +0000 (09:36 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 25 Sep 2012 20:56:28 +0000 (13:56 -0700)
Upcoming tunnel code will be able to handle ECN encapsulation/
decapsulation in userspace.  This adds the necessary constants for ECN
manipulation.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
lib/packets.h

index e5be1cb..24b51da 100644 (file)
@@ -325,6 +325,10 @@ void ip_format_masked(ovs_be32 ip, ovs_be32 mask, struct ds *);
 #endif
 
 /* TOS fields. */
+#define IP_ECN_NOT_ECT 0x0
+#define IP_ECN_ECT_1 0x01
+#define IP_ECN_ECT_0 0x02
+#define IP_ECN_CE 0x03
 #define IP_ECN_MASK 0x03
 #define IP_DSCP_MASK 0xfc