diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-07-18 17:35:40 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2016-08-15 17:04:52 +0000 |
commit | a5abdeb296f3e395708e89d29093ab37fb6cae2f (patch) | |
tree | c9b68832c758b6875ca075463a952cd61b2b123c /vpp/vpp-api/api.c | |
parent | c379999665febd12ec55bfb3a7545224f2b39d3d (diff) |
VPP-198: LISP map-resolver failover algorithm
Change-Id: Iadd49e58a359a2e58610bd1793818ec8a25d51f1
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp/vpp-api/api.c')
-rw-r--r-- | vpp/vpp-api/api.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index 788e310e..86dd9ac3 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -5861,8 +5861,8 @@ static void vl_api_lisp_map_resolver_dump_t_handler (vl_api_lisp_map_resolver_dump_t * mp) { unix_shared_memory_queue_t *q = NULL; - lisp_cp_main_t *lcm = vnet_lisp_cp_get_main (); - ip_address_t *ip = NULL; + lisp_cp_main_t * lcm = vnet_lisp_cp_get_main (); + map_resolver_t * mr; q = vl_api_client_index_to_input_queue (mp->client_index); if (q == 0) @@ -5870,11 +5870,10 @@ vl_api_lisp_map_resolver_dump_t_handler (vl_api_lisp_map_resolver_dump_t * mp) return; } - vec_foreach (ip, lcm->map_resolvers) + vec_foreach(mr, lcm->map_resolvers) { - send_lisp_map_resolver_details (ip, q, mp->context); + send_lisp_map_resolver_details(&mr->address, q, mp->context); } - } static void |