summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh/nsh_test.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-08-02 01:33:51 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-08-02 01:43:40 +0800
commitaec524e024e6a3f9a3a242defeab2f5c2cc62649 (patch)
tree34cea811f99b09998bc8326cfd40c41182f4d36c /nsh-plugin/nsh/nsh_test.c
parente566590ed0b45b1b230239a6a066f40bc4da3fb8 (diff)
Fix tlv[0] issue of nsh_entry
PatchSet 2: delete tlv Change-Id: I19131a8dfc441be1d7cbb92c817a3f7e583f9189 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh_test.c')
-rw-r--r--nsh-plugin/nsh/nsh_test.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nsh-plugin/nsh/nsh_test.c b/nsh-plugin/nsh/nsh_test.c
index dc3c4d0..d3dabee 100644
--- a/nsh-plugin/nsh/nsh_test.c
+++ b/nsh-plugin/nsh/nsh_test.c
@@ -143,7 +143,6 @@ static int api_nsh_add_del_entry (vat_main_t * vam)
u32 c2 = 0;
u32 c3 = 0;
u32 c4 = 0;
- u32 *tlvs = 0;
u32 tmp;
vl_api_nsh_add_del_entry_t * mp;
@@ -176,8 +175,6 @@ static int api_nsh_add_del_entry (vat_main_t * vam)
nsp_set = 1;
else if (unformat (line_input, "nsi %d", &nsi))
nsi_set = 1;
- else if (unformat (line_input, "tlv %x"))
- vec_add1 (tlvs, tmp);
else
return -99; // PARSE ERROR;
}
@@ -207,7 +204,6 @@ static int api_nsh_add_del_entry (vat_main_t * vam)
foreach_copy_nshhdr_field;
#undef _
- mp->tlvs[0] = 0 ; // TODO FIXME this shouldn't be set 0 - in NSH_SFC project
/* send it... */
S;