Fix nsh_map_dump_details issue 79/3579/1
authorHongjun Ni <[email protected]>
Wed, 26 Oct 2016 11:24:09 +0000 (19:24 +0800)
committerHongjun Ni <[email protected]>
Wed, 26 Oct 2016 11:25:17 +0000 (19:25 +0800)
Change-Id: I4b3094b1895721bc88756d026452a5fcecb4c27b
Signed-off-by: Hongjun Ni <[email protected]>
nsh-plugin/nsh/nsh.c

index 4e045f6..3045be1 100644 (file)
@@ -757,7 +757,7 @@ static void send_nsh_map_details
     rmp->_vl_msg_id = ntohs((VL_API_NSH_MAP_DETAILS)+nm->msg_id_base);
     rmp->nsp_nsi = htonl(t->nsp_nsi);
     rmp->mapped_nsp_nsi = htonl(t->mapped_nsp_nsi);
-    rmp->nsh_action = htonl(t->sw_if_index);
+    rmp->nsh_action = htonl(t->nsh_action);
     rmp->sw_if_index = htonl(t->sw_if_index);
     rmp->next_node = htonl(t->next_node);