aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/stn/stn_api.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-03-01 13:49:00 +0100
committerNeale Ranns <nranns@cisco.com>2018-03-01 14:35:39 +0000
commit62bab658e7ca782c8d35dacacfa5906ddbcaf437 (patch)
tree264490a0f2d137e92aafd9e817f16c67802be7f4 /src/plugins/stn/stn_api.c
parent2bf8b8154d0e1707fbf8502eb8e85fdda885a8e5 (diff)
STN: Fix stn_rules_dump/details to follow API convention
Change-Id: I94f6c35bf751d25ca7fe7c67054e676a3ad2241b Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/stn/stn_api.c')
-rw-r--r--src/plugins/stn/stn_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/stn/stn_api.c b/src/plugins/stn/stn_api.c
index 2f52c74659f..8f9e2ea41ee 100644
--- a/src/plugins/stn/stn_api.c
+++ b/src/plugins/stn/stn_api.c
@@ -101,15 +101,15 @@ vl_api_stn_add_del_rule_t_handler (vl_api_stn_add_del_rule_t * mp)
}
static void
-send_stn_rule_details (stn_rule_t * r, vl_api_registration_t * reg,
- u32 context)
+send_stn_rules_details (stn_rule_t * r, vl_api_registration_t * reg,
+ u32 context)
{
- vl_api_stn_rule_details_t *rmp;
+ vl_api_stn_rules_details_t *rmp;
rmp = vl_msg_api_alloc (sizeof (*rmp));
memset (rmp, 0, sizeof (*rmp));
rmp->_vl_msg_id =
- clib_host_to_net_u16 (VL_API_STN_RULE_DETAILS + stn_main.msg_id_base);
+ clib_host_to_net_u16 (VL_API_STN_RULES_DETAILS + stn_main.msg_id_base);
if (ip46_address_is_ip4 (&r->address))
{
@@ -140,7 +140,7 @@ vl_api_stn_rules_dump_t_handler (vl_api_stn_rules_dump_t * mp)
/* *INDENT-OFF* */
pool_foreach (r, stn->rules,({
- send_stn_rule_details (r, reg, mp->context);
+ send_stn_rules_details (r, reg, mp->context);
}));
/* *INDENT-ON* */
}