From: Jesse Gross Date: Wed, 19 Sep 2012 16:36:19 +0000 (-0700) Subject: packets: Add ECN constants. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=495fe2648edbaa703f1c983aa58b8128e7386154;p=openvswitch packets: Add ECN constants. 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 Acked-by: Kyle Mestery --- diff --git a/lib/packets.h b/lib/packets.h index e5be1cb9..24b51daf 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -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