diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2016-08-02 01:33:51 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2016-08-02 01:43:40 +0800 |
commit | aec524e024e6a3f9a3a242defeab2f5c2cc62649 (patch) | |
tree | 34cea811f99b09998bc8326cfd40c41182f4d36c /nsh-plugin/nsh/nsh.c | |
parent | e566590ed0b45b1b230239a6a066f40bc4da3fb8 (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.c')
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index 21a972e..19c8fa7 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -469,7 +469,6 @@ nsh_add_del_entry_command_fn (vlib_main_t * vm, u32 c2 = 0; u32 c3 = 0; u32 c4 = 0; - u32 *tlvs = 0; u32 tmp; int rv; nsh_add_del_entry_args_t _a, * a = &_a; @@ -507,8 +506,6 @@ nsh_add_del_entry_command_fn (vlib_main_t * vm, 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 clib_error_return (0, "parse error: '%U'", format_unformat_error, line_input); @@ -538,8 +535,6 @@ nsh_add_del_entry_command_fn (vlib_main_t * vm, foreach_copy_nshhdr_field; #undef _ - a->nsh.tlvs[0] = 0 ; // TODO FIXME this shouldn't be set 0 - in NSH_SFC project - rv = nsh_add_del_entry (a); switch(rv) |