diff options
author | Damjan Marion <damarion@cisco.com> | 2016-03-29 13:06:36 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-03-29 12:50:53 +0000 |
commit | f1bd8bec8776755dfb98f1a93be0f9ee884aa7da (patch) | |
tree | 644d2e9673c3f9b421ef391a6a5edccf52af5fd1 /vpp/api | |
parent | b2ef4dde97b51b73a596093f06cbbdb84f23a824 (diff) |
Move classify_table_index under the union
Fields needed only by specific adj type should
be shared.
Change-Id: I59ee15a29d2f5f527f46910a1a63866b291734c7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp/api')
-rw-r--r-- | vpp/api/api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c index f941f2f7..9867b596 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -929,8 +929,8 @@ static int ip4_add_del_route_t_handler (vl_api_ip_add_del_route_t *mp) ip_adjacency_t cadj; memset(&cadj, 0, sizeof(cadj)); cadj.lookup_next_index = IP_LOOKUP_NEXT_CLASSIFY; - cadj.classify_table_index = ntohl(mp->classify_table_index); - if (pool_is_free_index (cm->tables, cadj.classify_table_index)) { + cadj.classify.table_index = ntohl(mp->classify_table_index); + if (pool_is_free_index (cm->tables, cadj.classify.table_index)) { dsunlock(sm); return VNET_API_ERROR_NO_SUCH_TABLE; } |