diff options
author | 2016-08-11 15:39:29 +0200 | |
---|---|---|
committer | 2016-08-11 15:47:15 +0200 | |
commit | c8291ef9611e465efd5ada0ff77b1018640b9690 (patch) | |
tree | 94952edb916b94caca4cf549129f2a29b5290864 /nsh-plugin/nsh | |
parent | 0588a165623801636e03eca1acb25a0ff6fbeb2b (diff) |
NSHSFC-7: send detail messages with proper id
Change-Id: If2c25f81853fc5b6f1a8a26cdfaa44f38b8bf394
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'nsh-plugin/nsh')
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 6 |
1 files 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; |