summaryrefslogtreecommitdiffstats
path: root/src/plugins/stn/stn_test.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-06 14:42:17 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-12-07 11:23:02 +0000
commit7929f9f5c612b22097d874001e93f5bb38e5ed4f (patch)
tree182a208e8633f40ec4205544ef08db956400ba24 /src/plugins/stn/stn_test.c
parent277f03f0673b4be5db0f0eb8b3ed0e63855dbac7 (diff)
stn: use explicit types in api
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ifba4ff0e0f61641ca3f5e7bb72086cb4f32f1909
Diffstat (limited to 'src/plugins/stn/stn_test.c')
-rw-r--r--src/plugins/stn/stn_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/stn/stn_test.c b/src/plugins/stn/stn_test.c
index c9bf5fe0309..c7514cf77c5 100644
--- a/src/plugins/stn/stn_test.c
+++ b/src/plugins/stn/stn_test.c
@@ -16,7 +16,7 @@
#include <vlibapi/api.h>
#include <vlibmemory/api.h>
#include <vppinfra/error.h>
-
+#include <vnet/format_fns.h>
#include <stn/stn.h>
#define __plugin_msg_base stn_test_main.msg_id_base
@@ -81,7 +81,7 @@ vl_api_stn_rules_details_t_handler (vl_api_stn_rules_details_t * mp)
{
vat_main_t *vam = stn_test_main.vat_main;
fformat (vam->ofp, "addr: %U sw_if_index: %u\n",
- mp->is_ip4 ? format_ip4_address : format_ip6_address,
+ format_ip46_address,
mp->ip_address, clib_net_to_host_u32 (mp->sw_if_index));
}