aboutsummaryrefslogtreecommitdiffstats
path: root/src/scvpp/src/interface.c
diff options
context:
space:
mode:
authorYohanPipereau <ypiperea@cisco.com>2019-04-05 20:14:09 +0200
committerYohanPipereau <ypiperea@cisco.com>2019-04-09 15:32:18 +0200
commit3320f7c7224e051b4a30a74e0a683159ed8b9dea (patch)
tree9f78bdc71d366a402970b44016d92ac922b399c3 /src/scvpp/src/interface.c
parenta760dfb253161911fc3aa3c8b879c461d53ade6e (diff)
Modify build system
-Clean Makefile -Fix errors in scvpp length copies -Add testing when building scvpp Change-Id: I5a331386a1812b147dfec26310dfbd3aed327dae Signed-off-by: YohanPipereau <ypiperea@cisco.com>
Diffstat (limited to 'src/scvpp/src/interface.c')
-rw-r--r--src/scvpp/src/interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scvpp/src/interface.c b/src/scvpp/src/interface.c
index 53cea1c..8f3b30b 100644
--- a/src/scvpp/src/interface.c
+++ b/src/scvpp/src/interface.c
@@ -20,6 +20,8 @@
#include <scvpp/comm.h>
#include <scvpp/interface.h>
+#define IFACE_SUBSTR 49
+
// Use VAPI macros to define symbols
DEFINE_VAPI_MSG_IDS_INTERFACE_API_JSON
@@ -53,7 +55,7 @@ bin_api_sw_interface_dump(vapi_payload_sw_interface_details *details,
/* Dump a specific interfaces */
mp->payload.name_filter_valid = true;
- strncpy((char *)mp->payload.name_filter, iface_name, VPP_INTFC_NAME_LEN);
+ strncpy((char *)mp->payload.name_filter, iface_name, IFACE_SUBSTR);
VAPI_CALL(vapi_sw_interface_dump(g_vapi_ctx, mp,
sw_interface_dump_cb, details));