diff options
author | Aleksander Djuric <aleksander.djuric@gmail.com> | 2019-10-31 14:35:21 +0300 |
---|---|---|
committer | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-11-07 14:39:02 +0000 |
commit | c12eae73f925169597e20a8f8139c462e317404d (patch) | |
tree | 6b61934b5216ec50d862b67a6ba8079ea9536ae3 /src/vnet | |
parent | 3f8c87132d63c14f1ba90d7db6cf2a2aba0f8cb9 (diff) |
interface: shmemioerror while getting name_filter arg
Type: fix
Signed-off-by: Aleksander Djuric <aleksander.djuric@gmail.com>
Change-Id: I5e0eb7024d208040d79e9d6db863f41e2ecf4ee6
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/interface.api | 2 | ||||
-rw-r--r-- | src/vnet/interface_api.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/interface.api b/src/vnet/interface.api index 1db5ef34c3a..efc5bb487c9 100644 --- a/src/vnet/interface.api +++ b/src/vnet/interface.api @@ -14,7 +14,7 @@ * limitations under the License. */ -option version = "3.2.0"; +option version = "3.2.1"; import "vnet/interface_types.api"; import "vnet/ethernet/ethernet_types.api"; diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index 5e9561fec5f..3b0c515f013 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -358,9 +358,8 @@ vl_api_sw_interface_dump_t_handler (vl_api_sw_interface_dump_t * mp) if (mp->name_filter_valid) { - filter = - format (0, ".*%s", vl_api_string_len (&mp->name_filter), - vl_api_from_api_string (&mp->name_filter), 0); + filter = vl_api_from_api_to_vec (&mp->name_filter); + vec_add1 (filter, 0); /* Ensure it's a C string for strcasecmp() */ } char *strcasestr (char *, char *); /* lnx hdr file botch */ |