From 495fe2648edbaa703f1c983aa58b8128e7386154 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 19 Sep 2012 09:36:19 -0700 Subject: [PATCH] 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 --- lib/packets.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2