summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh/nsh.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-07-29 19:55:19 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-07-29 03:42:07 +0000
commited5a133ef8debf7580d6c5bc16187222244c8b0e (patch)
treeed7c89e3738ae8746ffb1abab6b5f995c644e253 /nsh-plugin/nsh/nsh.c
parentdd4641c844d60ad21ab638cd08cfd89f02eaf071 (diff)
Fix nsh_add_del_map issue with VAT
PatchSet 4: rebuild PatchSet 4: rebuild PatchSet 3: rebuild again PatchSet 2: rebuild Change-Id: Id8c10d65767a9d4eded63d7be6a87e2f87f383db Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.c')
-rw-r--r--nsh-plugin/nsh/nsh.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index ba1e5f0..3c30af7 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -349,7 +349,13 @@ static void vl_api_nsh_add_del_map_t_handler
vl_api_nsh_add_del_map_reply_t * rmp;
nsh_main_t * nm = &nsh_main;
int rv;
- nsh_add_del_map_args_t *a = 0;
+ nsh_add_del_map_args_t _a, *a = &_a;
+
+ a->is_add = mp->is_add;
+ a->map.nsp_nsi = mp->nsp_nsi;
+ a->map.mapped_nsp_nsi = mp->mapped_nsp_nsi;
+ a->map.sw_if_index = mp->sw_if_index;
+ a->map.next_node = mp->next_node;
rv = nsh_add_del_map (a);