summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh/nsh.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-07-29 19:24:55 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-07-29 19:24:55 +0800
commitdd4641c844d60ad21ab638cd08cfd89f02eaf071 (patch)
tree58a5d4378a2d0d7a6aaec1896f07d025fcc0d4be /nsh-plugin/nsh/nsh.c
parentb436fcce0b720d2919fcf3f3b4d9288c43b088eb (diff)
Fix nsh_add_del_entry issue in VAT
Change-Id: I880204a58e6bd90702d935322de53a4377ff099b Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.c')
-rw-r--r--nsh-plugin/nsh/nsh.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index 3c51af1..ba1e5f0 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -561,7 +561,18 @@ static void vl_api_nsh_add_del_entry_t_handler
vl_api_nsh_add_del_entry_reply_t * rmp;
nsh_main_t * nm = &nsh_main;
int rv;
- nsh_add_del_entry_args_t *a = 0;
+ nsh_add_del_entry_args_t _a, *a = &_a;
+
+ a->is_add = mp->is_add;
+ a->nsh.ver_o_c = mp->ver_o_c;
+ a->nsh.length = mp->length;
+ a->nsh.md_type = mp->md_type;
+ a->nsh.next_protocol = mp->next_protocol;
+ a->nsh.nsp_nsi = mp->nsp_nsi;
+ a->nsh.c1 = mp->c1;
+ a->nsh.c2 = mp->c2;
+ a->nsh.c3 = mp->c3;
+ a->nsh.c4 = mp->c4;
rv = nsh_add_del_entry (a);