diff options
author | Jesse Gross <jesse@nicira.com> | 2012-09-19 09:36:19 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-09-25 13:56:28 -0700 |
commit | 495fe2648edbaa703f1c983aa58b8128e7386154 (patch) | |
tree | c8f6a5477c9ba39777ef85eb255519476784d3ec /lib/packets.h | |
parent | 62827e6abef5844d61f2f57d9a643c0ffb092210 (diff) |
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 <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r-- | lib/packets.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |