NSHSFC-7: send detail messages with proper id 44/2344/1
authorMarek Gradzki <[email protected]>
Thu, 11 Aug 2016 13:39:29 +0000 (15:39 +0200)
committerMarek Gradzki <[email protected]>
Thu, 11 Aug 2016 13:47:15 +0000 (15:47 +0200)
Change-Id: If2c25f81853fc5b6f1a8a26cdfaa44f38b8bf394
Signed-off-by: Marek Gradzki <[email protected]>
nsh-plugin/nsh/nsh.c

index f6c45e7..8186afe 100644 (file)
@@ -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;