diff options
author | Dave Barach <dave@barachs.net> | 2016-12-06 12:04:42 -0500 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2016-12-06 20:00:57 +0000 |
commit | b5e8a771fb825301023e3732ffa24d0ceb42b6cd (patch) | |
tree | 03e692547113a00dbc327a08aab75c4cadba8b62 /vpp-api-test/vat | |
parent | dfc19232dfc518e51e5bca7c698ace9ea53038be (diff) |
Refactor binary APIs for IP, VPP-549
Change-Id: Ieff6b22e2432600a231f74e75716e000d488a78f
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index 2a64958e6d4..344259b88cd 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -15270,7 +15270,7 @@ vl_api_mpls_fib_details_t_handler (vl_api_mpls_fib_details_t * mp) { vat_main_t *vam = &vat_main; int count = ntohl (mp->count); - vl_api_fib_path_t *fp; + vl_api_fib_path2_t *fp; int i; fformat (vam->ofp, @@ -15305,7 +15305,7 @@ static void vl_api_mpls_fib_details_t_handler_json vat_json_node_t *node = NULL; struct in_addr ip4; struct in6_addr ip6; - vl_api_fib_path_t *fp; + vl_api_fib_path2_t *fp; int i; if (VAT_JSON_ARRAY != vam->json_tree.type) @@ -17775,43 +17775,6 @@ vat_api_hookup (vat_main_t * vam) #undef _ } -#undef vl_api_version -#define vl_api_version(n,v) static u32 memory_api_version = v; -#include <vlibmemory/vl_memory_api_h.h> -#undef vl_api_version - -#undef vl_api_version -#define vl_api_version(n,v) static u32 vnet_interface_api_version = v; -#include <vnet/interface.api.h> -#undef vl_api_version - -#undef vl_api_version -#define vl_api_version(n,v) static u32 vpp_api_version = v; -#include <vpp-api/vpe.api.h> -#undef vl_api_version - -static u32 *api_versions[] = { - &memory_api_version, - &vnet_interface_api_version, - &vpp_api_version, -}; - -void -vl_client_add_api_signatures (vl_api_memclnt_create_t * mp) -{ - int i; - - ASSERT (ARRAY_LEN (mp->api_versions) >= ARRAY_LEN (api_versions)); - - /* - * Send the API signatures. This bit of code must - * match the checks in ../vpe/api/api.c: vl_msg_api_version_check(). - */ - - for (i = 0; i < ARRAY_LEN (api_versions); i++) - mp->api_versions[i] = clib_host_to_net_u32 (*api_versions[i]); -} - /* * fd.io coding-style-patch-verification: ON * |