summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-04-28 17:32:23 -0400
committerNeale Ranns <nranns@cisco.com>2020-04-29 07:44:33 +0000
commitc4ae0fffb5d147d71b9f943305c0f28f61655a6f (patch)
tree5545261360e73f991b42b92645bdaffdef344ed1 /src
parent34de6fea134051ff2f3488ccbddf5c055d3602f1 (diff)
interface: fix interface_types.api enums
Unspecified c enums start at 0. Unspecified api enums start at 1. Type: fix Change-Id: I431c11302c0ad897a968134ce90496af3db7bb86 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface_types.api17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/vnet/interface_types.api b/src/vnet/interface_types.api
index a6178396e79..2cdcc8bda5a 100644
--- a/src/vnet/interface_types.api
+++ b/src/vnet/interface_types.api
@@ -25,11 +25,10 @@ enum if_status_flags
/* Per protocol MTU */
enum mtu_proto
{
- MTU_PROTO_API_L3, /* Default payload MTU (without L2 headers) */
- MTU_PROTO_API_IP4, /* Per-protocol MTUs overriding default */
- MTU_PROTO_API_IP6,
- MTU_PROTO_API_MPLS,
- MTU_PROTO_API_N,
+ MTU_PROTO_API_L3 = 0, /* Default payload MTU (without L2 headers) */
+ MTU_PROTO_API_IP4 = 1, /* Per-protocol MTUs overriding default */
+ MTU_PROTO_API_IP6 = 2,
+ MTU_PROTO_API_MPLS = 3,
};
enum link_duplex
@@ -65,10 +64,10 @@ enum rx_mode
enum if_type
{
/* A hw interface. */
- IF_API_TYPE_HARDWARE,
+ IF_API_TYPE_HARDWARE = 0,
/* A sub-interface. */
- IF_API_TYPE_SUB,
- IF_API_TYPE_P2P,
- IF_API_TYPE_PIPE,
+ IF_API_TYPE_SUB = 1,
+ IF_API_TYPE_P2P = 2,
+ IF_API_TYPE_PIPE = 3,
};