From c8291ef9611e465efd5ada0ff77b1018640b9690 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 11 Aug 2016 15:39:29 +0200 Subject: NSHSFC-7: send detail messages with proper id Change-Id: If2c25f81853fc5b6f1a8a26cdfaa44f38b8bf394 Signed-off-by: Marek Gradzki --- nsh-plugin/nsh/nsh.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index f6c45e7..8186afe 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -623,11 +623,12 @@ static void send_nsh_entry_details (nsh_header_t * t, unix_shared_memory_queue_t * q, u32 context) { vl_api_nsh_entry_details_t * rmp; + nsh_main_t * nm = &nsh_main; rmp = vl_msg_api_alloc (sizeof (*rmp)); memset (rmp, 0, sizeof (*rmp)); - rmp->_vl_msg_id = ntohs(VL_API_NSH_ENTRY_DETAILS); + rmp->_vl_msg_id = ntohs((VL_API_NSH_ENTRY_DETAILS)+nm->msg_id_base); rmp->ver_o_c = t->ver_o_c; rmp->length = t->length; rmp->md_type = t->md_type; @@ -665,11 +666,12 @@ static void send_nsh_map_details (nsh_map_t * t, unix_shared_memory_queue_t * q, u32 context) { vl_api_nsh_map_details_t * rmp; + nsh_main_t * nm = &nsh_main; rmp = vl_msg_api_alloc (sizeof (*rmp)); memset (rmp, 0, sizeof (*rmp)); - rmp->_vl_msg_id = ntohs(VL_API_NSH_MAP_DETAILS); + rmp->_vl_msg_id = ntohs((VL_API_NSH_MAP_DETAILS)+nm->msg_id_base); rmp->nsp_nsi = t->nsp_nsi; rmp->mapped_nsp_nsi = t->mapped_nsp_nsi; rmp->sw_if_index = t->sw_if_index; -- cgit 1.2.3-korg