diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-07-13 09:45:39 -0400 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-14 17:14:21 +0000 |
commit | 53c5015121b3d457377a1b1afac076e6218e5326 (patch) | |
tree | 26a4573819169ce36841ecc60729688b0396cc87 /src | |
parent | f7457521b63391a571711f66fcbd24d7c0d19270 (diff) |
api: add DSCP definitions to ip_types.api
- also adds ecn definitions.
Type: feature
Change-Id: Id98d9ae57289425fcfed367f426442173ef4e882
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ip/ip_types.api | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index b962e1a6f31..8b46a1d44fe 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -22,11 +22,57 @@ enum address_family { ADDRESS_IP6, }; +/* ECN code points - RFC 3168 + https://tools.ietf.org/html/rfc3168 +*/ +enum ip_ecn : u8 { + IP_API_ECN_NONE = 0, + IP_API_ECN_ECT0 = 1, + IP_API_ECN_ECT1 = 2, + IP_API_ECN_CE = 3, +}; + +/* DSCP code points - RFC 2474 + https://tools.ietf.org/html/rfc2474 +*/ + +enum ip_dscp : u8 { + IP_API_DSCP_CS0 = 0, + IP_API_DSCP_CS1 = 8, + IP_API_DSCP_AF11 = 10, + IP_API_DSCP_AF12 = 12, + IP_API_DSCP_AF13 = 14, + IP_API_DSCP_CS2 = 16, + IP_API_DSCP_AF21 = 18, + IP_API_DSCP_AF22 = 20, + IP_API_DSCP_AF23 = 22, + IP_API_DSCP_CS3 = 24, + IP_API_DSCP_AF31 = 26, + IP_API_DSCP_AF32 = 28, + IP_API_DSCP_AF33 = 30, + IP_API_DSCP_CS4 = 32, + IP_API_DSCP_AF41 = 34, + IP_API_DSCP_AF42 = 36, + IP_API_DSCP_AF43 = 38, + IP_API_DSCP_CS5 = 40, + IP_API_DSCP_EF = 46, + IP_API_DSCP_CS6 = 48, + IP_API_DSCP_CS7 = 50, +}; + enum ip_proto { + IP_API_PROTO_HOPOPT = 0, + IP_API_PROTO_ICMP = 1, + IP_API_PROTO_IGMP = 2, IP_API_PROTO_TCP = 6, IP_API_PROTO_UDP = 17, + IP_API_PROTO_GRE = 47, + IP_API_PROTO_AH = 50, + IP_API_PROTO_ESP = 51, IP_API_PROTO_EIGRP = 88, IP_API_PROTO_OSPF = 89, + IP_API_PROTO_SCTP = 132, + IP_API_PROTO_RESERVED = 255, }; union address_union { |