aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorIgor Mikhailov (imichail) <imichail@cisco.com>2018-10-31 14:20:04 -0700
committerJohn Lo <loj@cisco.com>2018-11-01 20:20:30 +0000
commitf3ffdbc809e912e6cb8ac042a20ad5227c754b23 (patch)
tree46aa5db7a95bc3de96a996348bcfdbc9fa7aacf1 /src/plugins
parent12fe878ac8cd3c62b336cddd0b0e7c8a3771a9fe (diff)
Fix API name_crc format stored in msg_api_table
Change-Id: I716d025beb8f649060238c2bd388357943643621 Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/cdp/cdp.c2
-rw-r--r--src/plugins/mactime/mactime.c2
-rw-r--r--src/plugins/nsim/nsim.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cdp/cdp.c b/src/plugins/cdp/cdp.c
index a88a06bc9c5..3356437a9ea 100644
--- a/src/plugins/cdp/cdp.c
+++ b/src/plugins/cdp/cdp.c
@@ -174,7 +174,7 @@ cdp_plugin_api_hookup (vlib_main_t * vm)
static void
setup_message_id_table (cdp_main_t * cm, api_main_t * am)
{
-#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n #crc, id + cm->msg_id_base);
+#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + cm->msg_id_base);
foreach_vl_msg_name_crc_cdp;
#undef _
}
diff --git a/src/plugins/mactime/mactime.c b/src/plugins/mactime/mactime.c
index 21857d430c0..837b317027d 100644
--- a/src/plugins/mactime/mactime.c
+++ b/src/plugins/mactime/mactime.c
@@ -339,7 +339,7 @@ mactime_plugin_api_hookup (vlib_main_t * vm)
static void
setup_message_id_table (mactime_main_t * mm, api_main_t * am)
{
-#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n #crc, id + mm->msg_id_base);
+#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + mm->msg_id_base);
foreach_vl_msg_name_crc_mactime;
#undef _
}
diff --git a/src/plugins/nsim/nsim.c b/src/plugins/nsim/nsim.c
index 34a5039ad70..ec79070b2e7 100644
--- a/src/plugins/nsim/nsim.c
+++ b/src/plugins/nsim/nsim.c
@@ -357,7 +357,7 @@ nsim_plugin_api_hookup (vlib_main_t * vm)
static void
setup_message_id_table (nsim_main_t * nsm, api_main_t * am)
{
-#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n #crc, id + nsm->msg_id_base);
+#define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + nsm->msg_id_base);
foreach_vl_msg_name_crc_nsim;
#undef _
}