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 <[email protected]>
---
 lib/packets.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/packets.h b/lib/packets.h
index e5be1cb..24b51da 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
 
-- 
1.7.9.5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to