summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2017-01-31 15:27:19 -0600
committerDave Barach <openvpp@barachs.net>2017-02-02 17:32:03 +0000
commit1f9191f6efa5f2e0284c194f920093201b27ef81 (patch)
treef55bd27e2b6d4e25101f650c009c43805d36fd32 /src
parent7bc770ceb62ede18414b7bb5788692e32477e373 (diff)
Localize the timeout variable within the W message macro.
Rather than rely on an unbound variable, explicitly introduce the timeout variable within the 'do { ... } while (0)' construct as a block-local variable. Change-Id: I6e78635290f9b5ab3f56b7f116c5fa762c88c9e9 Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/acl/acl_test.c12
-rw-r--r--src/plugins/flowperpkt/flowperpkt_test.c1
-rw-r--r--src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c1
-rw-r--r--src/plugins/ioam/export/ioam_export_test.c1
-rw-r--r--src/plugins/ioam/lib-pot/pot_test.c4
-rw-r--r--src/plugins/ioam/lib-trace/trace_test.c4
-rw-r--r--src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_test.c6
-rw-r--r--src/plugins/lb/lb_test.c3
-rw-r--r--src/plugins/snat/snat_test.c12
-rw-r--r--src/vat/api_format.c186
-rw-r--r--src/vlibapi/vat_helper_macros.h4
11 files changed, 5 insertions, 229 deletions
diff --git a/src/plugins/acl/acl_test.c b/src/plugins/acl/acl_test.c
index 70fd6959594..39d7e1c4848 100644
--- a/src/plugins/acl/acl_test.c
+++ b/src/plugins/acl/acl_test.c
@@ -267,7 +267,6 @@ static int api_acl_plugin_get_version (vat_main_t * vam)
acl_test_main_t * sm = &acl_test_main;
vl_api_acl_plugin_get_version_t * mp;
u32 msg_size = sizeof(*mp);
- f64 timeout;
vam->result_ready = 0;
mp = vl_msg_api_alloc_as_if_client(msg_size);
@@ -289,7 +288,6 @@ static int api_macip_acl_interface_get (vat_main_t * vam)
acl_test_main_t * sm = &acl_test_main;
vl_api_acl_plugin_get_version_t * mp;
u32 msg_size = sizeof(*mp);
- f64 timeout;
vam->result_ready = 0;
mp = vl_msg_api_alloc_as_if_client(msg_size);
@@ -321,7 +319,6 @@ static int api_acl_add_replace (vat_main_t * vam)
{
acl_test_main_t * sm = &acl_test_main;
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_acl_add_replace_t * mp;
u32 acl_index = ~0;
u32 msg_size = sizeof (*mp); /* without the rules */
@@ -488,7 +485,6 @@ static int api_acl_add_replace (vat_main_t * vam)
static int api_acl_del (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_acl_del_t * mp;
u32 acl_index = ~0;
@@ -511,7 +507,6 @@ static int api_acl_del (vat_main_t * vam)
static int api_macip_acl_del (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_acl_del_t * mp;
u32 acl_index = ~0;
@@ -534,7 +529,6 @@ static int api_macip_acl_del (vat_main_t * vam)
static int api_acl_interface_add_del (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_acl_interface_add_del_t * mp;
u32 sw_if_index = ~0;
u32 acl_index = ~0;
@@ -601,7 +595,6 @@ static int api_acl_interface_add_del (vat_main_t * vam)
static int api_macip_acl_interface_add_del (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_macip_acl_interface_add_del_t * mp;
u32 sw_if_index = ~0;
u32 acl_index = ~0;
@@ -651,7 +644,6 @@ static int api_macip_acl_interface_add_del (vat_main_t * vam)
static int api_acl_interface_set_acl_list (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_acl_interface_set_acl_list_t * mp;
u32 sw_if_index = ~0;
u32 acl_index = ~0;
@@ -709,7 +701,6 @@ static int api_acl_interface_set_acl_list (vat_main_t * vam)
static int api_acl_interface_list_dump (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
u32 sw_if_index = ~0;
vl_api_acl_interface_list_dump_t * mp;
@@ -737,7 +728,6 @@ static int api_acl_interface_list_dump (vat_main_t * vam)
static int api_acl_dump (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
u32 acl_index = ~0;
vl_api_acl_dump_t * mp;
@@ -763,7 +753,6 @@ static int api_acl_dump (vat_main_t * vam)
static int api_macip_acl_dump (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
u32 acl_index = ~0;
vl_api_acl_dump_t * mp;
@@ -799,7 +788,6 @@ static int api_macip_acl_add (vat_main_t * vam)
{
acl_test_main_t * sm = &acl_test_main;
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_macip_acl_add_t * mp;
u32 msg_size = sizeof (*mp); /* without the rules */
diff --git a/src/plugins/flowperpkt/flowperpkt_test.c b/src/plugins/flowperpkt/flowperpkt_test.c
index d5edc4ad1c2..4cc1cfb7589 100644
--- a/src/plugins/flowperpkt/flowperpkt_test.c
+++ b/src/plugins/flowperpkt/flowperpkt_test.c
@@ -95,7 +95,6 @@ static int
api_flowperpkt_tx_interface_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
- f64 timeout;
int enable_disable = 1;
u8 which = 0; /* ipv4 by default */
u32 sw_if_index = ~0;
diff --git a/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c b/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
index 161b5241624..a7938219fb4 100644
--- a/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
+++ b/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
@@ -92,7 +92,6 @@ static int
api_vxlan_gpe_ioam_export_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
- f64 timeout;
int is_disable = 0;
vl_api_vxlan_gpe_ioam_export_enable_disable_t *mp;
diff --git a/src/plugins/ioam/export/ioam_export_test.c b/src/plugins/ioam/export/ioam_export_test.c
index 45c4ca56ff7..2cb036a5568 100644
--- a/src/plugins/ioam/export/ioam_export_test.c
+++ b/src/plugins/ioam/export/ioam_export_test.c
@@ -94,7 +94,6 @@ static int
api_ioam_export_ip6_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
- f64 timeout;
int is_disable = 0;
vl_api_ioam_export_ip6_enable_disable_t *mp;
diff --git a/src/plugins/ioam/lib-pot/pot_test.c b/src/plugins/ioam/lib-pot/pot_test.c
index 4f049be8e8a..d896eb2ff88 100644
--- a/src/plugins/ioam/lib-pot/pot_test.c
+++ b/src/plugins/ioam/lib-pot/pot_test.c
@@ -132,7 +132,6 @@ static int api_pot_profile_add (vat_main_t *vam)
u64 secret_key = 0;
u32 bits = MAX_BITS;
u64 lpc = 0, poly2 = 0;
- f64 timeout;
u8 id = 0;
int rv = 0;
@@ -204,7 +203,6 @@ static int api_pot_profile_activate (vat_main_t *vam)
u8 *name = NULL;
u8 id = 0;
int rv = 0;
- f64 timeout;
while (unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
{
@@ -241,7 +239,6 @@ OUT:
static int api_pot_profile_del (vat_main_t *vam)
{
vl_api_pot_profile_del_t *mp;
- f64 timeout;
M(POT_PROFILE_DEL, mp);
mp->list_name_len = 0;
@@ -254,7 +251,6 @@ static int api_pot_profile_show_config_dump (vat_main_t *vam)
{
unformat_input_t *input = vam->input;
vl_api_pot_profile_show_config_dump_t *mp;
- f64 timeout;
u8 id = 0;
while(unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
diff --git a/src/plugins/ioam/lib-trace/trace_test.c b/src/plugins/ioam/lib-trace/trace_test.c
index 5093f33086e..d1fb7205ad2 100644
--- a/src/plugins/ioam/lib-trace/trace_test.c
+++ b/src/plugins/ioam/lib-trace/trace_test.c
@@ -129,7 +129,6 @@ api_trace_profile_add (vat_main_t * vam)
u32 node_id = 0;
u32 app_data = 0;
u8 trace_tsp = 0;
- f64 timeout;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
@@ -169,7 +168,6 @@ static int
api_trace_profile_del (vat_main_t * vam)
{
vl_api_trace_profile_del_t *mp;
- f64 timeout;
M (TRACE_PROFILE_DEL, mp);
S (mp);
@@ -181,7 +179,7 @@ static int
api_trace_profile_show_config (vat_main_t * vam)
{
vl_api_trace_profile_show_config_t *mp;
- f64 timeout;
+
M (TRACE_PROFILE_SHOW_CONFIG, mp);
S (mp);
W;
diff --git a/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_test.c b/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_test.c
index ee25a874918..3e7300f5dd2 100644
--- a/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_test.c
+++ b/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_test.c
@@ -104,7 +104,6 @@ api_vxlan_gpe_ioam_enable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_vxlan_gpe_ioam_enable_t *mp;
- f64 timeout;
u32 id = 0;
int has_trace_option = 0;
int has_pow_option = 0;
@@ -143,7 +142,6 @@ static int
api_vxlan_gpe_ioam_disable (vat_main_t * vam)
{
vl_api_vxlan_gpe_ioam_disable_t *mp;
- f64 timeout;
M (VXLAN_GPE_IOAM_DISABLE, mp);
S (mp);
@@ -163,7 +161,6 @@ api_vxlan_gpe_ioam_vni_enable (vat_main_t * vam)
u8 remote_set = 0;
u32 vni;
u8 vni_set = 0;
- f64 timeout;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
@@ -258,7 +255,6 @@ api_vxlan_gpe_ioam_vni_disable (vat_main_t * vam)
u8 remote_set = 0;
u32 vni;
u8 vni_set = 0;
- f64 timeout;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
@@ -351,7 +347,6 @@ api_vxlan_gpe_ioam_transit_enable (vat_main_t * vam)
u8 ipv4_set = 0, ipv6_set = 0;
u8 local_set = 0;
u32 outer_fib_index = 0;
- f64 timeout;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
@@ -421,7 +416,6 @@ api_vxlan_gpe_ioam_transit_disable (vat_main_t * vam)
u8 ipv4_set = 0, ipv6_set = 0;
u8 local_set = 0;
u32 outer_fib_index = 0;
- f64 timeout;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
diff --git a/src/plugins/lb/lb_test.c b/src/plugins/lb/lb_test.c
index f553a93e4dc..a811079ea75 100644
--- a/src/plugins/lb/lb_test.c
+++ b/src/plugins/lb/lb_test.c
@@ -133,7 +133,6 @@ foreach_standard_reply_retval_handler;
static int api_lb_conf (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
- f64 timeout;
vl_api_lb_conf_t mps, *mp;
if (!unformat(i, "%U %U %u %u",
@@ -156,7 +155,6 @@ static int api_lb_conf (vat_main_t * vam)
static int api_lb_add_del_vip (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_lb_add_del_vip_t mps, *mp;
mps.is_del = 0;
mps.is_gre4 = 0;
@@ -195,7 +193,6 @@ static int api_lb_add_del_vip (vat_main_t * vam)
static int api_lb_add_del_as (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_lb_add_del_as_t mps, *mp;
mps.is_del = 0;
diff --git a/src/plugins/snat/snat_test.c b/src/plugins/snat/snat_test.c
index c0913f37d4f..8bab00c11ab 100644
--- a/src/plugins/snat/snat_test.c
+++ b/src/plugins/snat/snat_test.c
@@ -109,7 +109,6 @@ _(SNAT_IPFIX_ENABLE_DISABLE_REPLY, \
static int api_snat_add_address_range (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
ip4_address_t start_addr, end_addr;
u32 start_host_order, end_host_order;
vl_api_snat_add_address_range_t * mp;
@@ -169,7 +168,6 @@ static int api_snat_add_address_range (vat_main_t * vam)
static int api_snat_interface_add_del_feature (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_snat_interface_add_del_feature_t * mp;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -215,7 +213,6 @@ static int api_snat_interface_add_del_feature (vat_main_t * vam)
static int api_snat_add_static_mapping(vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_snat_add_static_mapping_t * mp;
u8 external_addr_set = 0;
u8 local_addr_set;
@@ -320,7 +317,6 @@ static void vl_api_snat_static_mapping_details_t_handler
static int api_snat_static_mapping_dump(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_static_mapping_dump_t * mp;
if (vam->json_output)
@@ -379,7 +375,6 @@ static void vl_api_snat_show_config_reply_t_handler
static int api_snat_show_config(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_show_config_t * mp;
if (vam->json_output)
@@ -406,7 +401,6 @@ static void vl_api_snat_address_details_t_handler
static int api_snat_address_dump(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_address_dump_t * mp;
if (vam->json_output)
@@ -440,7 +434,6 @@ static void vl_api_snat_interface_details_t_handler
static int api_snat_interface_dump(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_interface_dump_t * mp;
if (vam->json_output)
@@ -465,7 +458,6 @@ static int api_snat_interface_dump(vat_main_t * vam)
static int api_snat_set_workers (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_snat_set_workers_t * mp;
uword *bitmap;
@@ -502,7 +494,6 @@ static void vl_api_snat_worker_details_t_handler
static int api_snat_worker_dump(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_worker_dump_t * mp;
if (vam->json_output)
@@ -527,7 +518,6 @@ static int api_snat_worker_dump(vat_main_t * vam)
static int api_snat_ipfix_enable_disable (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_snat_add_del_interface_addr_t * mp;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -575,7 +565,6 @@ static void vl_api_snat_interface_addr_details_t_handler
static int api_snat_interface_addr_dump(vat_main_t * vam)
{
- f64 timeout;
vl_api_snat_interface_addr_dump_t * mp;
if (vam->json_output)
@@ -600,7 +589,6 @@ static int api_snat_interface_addr_dump(vat_main_t * vam)
static int api_snat_add_del_interface_addr (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
- f64 timeout;
vl_api_snat_ipfix_enable_disable_t * mp;
u32 domain_id = 0;
u32 src_port = 0;
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index b374b281b4b..8caa94f0987 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -4640,7 +4640,6 @@ static int
exec_inband (vat_main_t * vam)
{
vl_api_cli_inband_t *mp;
- f64 timeout;
unformat_input_t *i = vam->input;
if (vec_len (i->buffer) == 0)
@@ -4676,7 +4675,6 @@ api_create_loopback (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_create_loopback_t *mp;
- f64 timeout;
u8 mac_address[6];
u8 mac_set = 0;
@@ -4704,7 +4702,6 @@ api_delete_loopback (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_delete_loopback_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -4734,7 +4731,6 @@ api_want_stats (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_want_stats_t *mp;
- f64 timeout;
int enable = -1;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -4765,7 +4761,6 @@ api_want_interface_events (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_want_interface_events_t *mp;
- f64 timeout;
int enable = -1;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -4799,7 +4794,6 @@ int
api_sw_interface_dump (vat_main_t * vam)
{
vl_api_sw_interface_dump_t *mp;
- f64 timeout;
hash_pair_t *p;
name_sort_t *nses = 0, *ns;
sw_interface_subif_t *sub = NULL;
@@ -4906,7 +4900,6 @@ api_sw_interface_set_flags (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_flags_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 admin_up = 0, link_up = 0;
@@ -4955,7 +4948,6 @@ api_sw_interface_clear_stats (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_clear_stats_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -4991,7 +4983,6 @@ api_sw_interface_set_dpdk_hqos_pipe (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_dpdk_hqos_pipe_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 subport;
@@ -5064,7 +5055,6 @@ api_sw_interface_set_dpdk_hqos_subport (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_dpdk_hqos_subport_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 subport;
@@ -5145,7 +5135,6 @@ api_sw_interface_set_dpdk_hqos_tctbl (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_dpdk_hqos_tctbl_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 entry_set = 0;
@@ -5213,7 +5202,6 @@ api_sw_interface_add_del_address (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_add_del_address_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 is_add = 1, del_all = 0;
@@ -5290,7 +5278,6 @@ api_sw_interface_set_mpls_enable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_mpls_enable_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 enable = 1;
@@ -5334,7 +5321,6 @@ api_sw_interface_set_table (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_table_t *mp;
- f64 timeout;
u32 sw_if_index, vrf_id = 0;
u8 sw_if_index_set = 0;
u8 is_ipv6 = 0;
@@ -5411,7 +5397,6 @@ api_sw_interface_get_table (vat_main_t * vam)
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 is_ipv6 = 0;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -5444,7 +5429,6 @@ api_sw_interface_set_vpath (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_vpath_t *mp;
- f64 timeout;
u32 sw_if_index = 0;
u8 sw_if_index_set = 0;
u8 is_enable = 0;
@@ -5488,7 +5472,6 @@ api_sw_interface_set_vxlan_bypass (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_vxlan_bypass_t *mp;
- f64 timeout;
u32 sw_if_index = 0;
u8 sw_if_index_set = 0;
u8 is_enable = 1;
@@ -5538,7 +5521,6 @@ api_sw_interface_set_l2_xconnect (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_l2_xconnect_t *mp;
- f64 timeout;
u32 rx_sw_if_index;
u8 rx_sw_if_index_set = 0;
u32 tx_sw_if_index;
@@ -5611,7 +5593,6 @@ api_sw_interface_set_l2_bridge (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_l2_bridge_t *mp;
- f64 timeout;
u32 rx_sw_if_index;
u8 rx_sw_if_index_set = 0;
u32 bd_id;
@@ -5674,7 +5655,6 @@ api_bridge_domain_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_bridge_domain_dump_t *mp;
- f64 timeout;
u32 bd_id = ~0;
/* Parse args required to build the message */
@@ -5707,7 +5687,6 @@ api_bridge_domain_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_bridge_domain_add_del_t *mp;
- f64 timeout;
u32 bd_id = ~0;
u8 is_add = 1;
u32 flood = 1, forward = 1, learn = 1, uu_flood = 1, arp_term = 0;
@@ -5920,7 +5899,6 @@ api_l2_flags (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_flags_t *mp;
- f64 timeout;
u32 sw_if_index;
u32 feature_bitmap = 0;
u8 sw_if_index_set = 0;
@@ -5975,7 +5953,6 @@ api_bridge_flags (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_bridge_flags_t *mp;
- f64 timeout;
u32 bd_id;
u8 bd_id_set = 0;
u8 is_set = 1;
@@ -6027,7 +6004,6 @@ api_bd_ip_mac_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_bd_ip_mac_add_del_t *mp;
- f64 timeout;
u32 bd_id;
u8 is_ipv6 = 0;
u8 is_add = 1;
@@ -6102,7 +6078,6 @@ api_tap_connect (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_tap_connect_t *mp;
- f64 timeout;
u8 mac_address[6];
u8 random_mac = 1;
u8 name_set = 0;
@@ -6195,7 +6170,6 @@ api_tap_modify (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_tap_modify_t *mp;
- f64 timeout;
u8 mac_address[6];
u8 random_mac = 1;
u8 name_set = 0;
@@ -6261,7 +6235,6 @@ api_tap_delete (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_tap_delete_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u8 sw_if_index_set = 0;
@@ -6299,7 +6272,6 @@ api_ip_add_del_route (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ip_add_del_route_t *mp;
- f64 timeout;
u32 sw_if_index = ~0, vrf_id = 0;
u8 is_ipv6 = 0;
u8 is_local = 0, is_drop = 0;
@@ -6549,6 +6521,7 @@ api_ip_add_del_route (vat_main_t * vam)
{
vl_api_control_ping_t *mp;
f64 after;
+ f64 timeout;
/* Shut off async mode */
vam->async_mode = 0;
@@ -6596,7 +6569,6 @@ api_ip_mroute_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ip_mroute_add_del_t *mp;
- f64 timeout;
u32 sw_if_index = ~0, vrf_id = 0;
u8 is_ipv6 = 0;
u8 is_local = 0;
@@ -6713,7 +6685,6 @@ api_mpls_route_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_mpls_route_add_del_t *mp;
- f64 timeout;
u32 sw_if_index = ~0, table_id = 0;
u8 create_table_if_needed = 0;
u8 is_add = 1;
@@ -6887,6 +6858,7 @@ api_mpls_route_add_del (vat_main_t * vam)
{
vl_api_control_ping_t *mp;
f64 after;
+ f64 timeout;
/* Shut off async mode */
vam->async_mode = 0;
@@ -6934,7 +6906,6 @@ api_mpls_ip_bind_unbind (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_mpls_ip_bind_unbind_t *mp;
- f64 timeout;
u32 ip_table_id = 0;
u8 create_table_if_needed = 0;
u8 is_bind = 1;
@@ -7017,7 +6988,6 @@ api_proxy_arp_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_proxy_arp_add_del_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_add = 1;
ip4_address_t lo, hi;
@@ -7063,7 +7033,6 @@ api_proxy_arp_intfc_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_proxy_arp_intfc_enable_disable_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 enable = 1;
u8 sw_if_index_set = 0;
@@ -7107,7 +7076,6 @@ api_mpls_tunnel_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_mpls_tunnel_add_del_t *mp;
- f64 timeout;
u8 is_add = 1;
u8 l2_only = 0;
@@ -7193,7 +7161,6 @@ api_sw_interface_set_unnumbered (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_unnumbered_t *mp;
- f64 timeout;
u32 sw_if_index;
u32 unnum_sw_index = ~0;
u8 is_add = 1;
@@ -7239,7 +7206,6 @@ api_ip_neighbor_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ip_neighbor_add_del_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 vrf_id = 0;
@@ -7334,7 +7300,6 @@ api_reset_vrf (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_reset_vrf_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_ipv6 = 0;
u8 vrf_id_set = 0;
@@ -7374,7 +7339,6 @@ api_create_vlan_subif (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_create_vlan_subif_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 vlan_id;
@@ -7433,7 +7397,6 @@ api_create_subif (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_create_subif_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 sub_id;
@@ -7508,7 +7471,6 @@ api_oam_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_oam_add_del_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_add = 1;
ip4_address_t src, dst;
@@ -7562,7 +7524,6 @@ api_reset_fib (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_reset_fib_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_ipv6 = 0;
u8 vrf_id_set = 0;
@@ -7602,7 +7563,6 @@ api_dhcp_proxy_config (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_dhcp_proxy_config_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_add = 1;
u8 insert_cid = 1;
@@ -7697,7 +7657,6 @@ api_dhcp_proxy_config_2 (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_dhcp_proxy_config_2_t *mp;
- f64 timeout;
u32 rx_vrf_id = 0;
u32 server_vrf_id = 0;
u8 is_add = 1;
@@ -7796,7 +7755,6 @@ api_dhcp_proxy_set_vss (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_dhcp_proxy_set_vss_t *mp;
- f64 timeout;
u8 is_ipv6 = 0;
u8 is_add = 1;
u32 tbl_id;
@@ -7860,7 +7818,6 @@ api_dhcp_client_config (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_dhcp_client_config_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 is_add = 1;
@@ -7921,7 +7878,6 @@ api_set_ip_flow_hash (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_set_ip_flow_hash_t *mp;
- f64 timeout;
u32 vrf_id = 0;
u8 is_ipv6 = 0;
u8 vrf_id_set = 0;
@@ -7985,7 +7941,6 @@ api_sw_interface_ip6_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_ip6_enable_disable_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 enable = 0;
@@ -8029,7 +7984,6 @@ api_sw_interface_ip6_set_link_local_address (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_ip6_set_link_local_address_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 v6_address_set = 0;
@@ -8081,7 +8035,6 @@ api_sw_interface_ip6nd_ra_prefix (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_ip6nd_ra_prefix_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 address_length = 0;
@@ -8170,7 +8123,6 @@ api_sw_interface_ip6nd_ra_config (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_ip6nd_ra_config_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 suppress = 0;
@@ -8267,7 +8219,6 @@ api_set_arp_neighbor_limit (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_set_arp_neighbor_limit_t *mp;
- f64 timeout;
u32 arp_nbr_limit;
u8 limit_set = 0;
u8 is_ipv6 = 0;
@@ -8307,7 +8258,6 @@ api_l2_patch_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_patch_add_del_t *mp;
- f64 timeout;
u32 rx_sw_if_index;
u8 rx_sw_if_index_set = 0;
u32 tx_sw_if_index;
@@ -8378,7 +8328,6 @@ api_ioam_enable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_ioam_enable_t *mp;
- f64 timeout;
u32 id = 0;
int has_trace_option = 0;
int has_pot_option = 0;
@@ -8417,7 +8366,6 @@ static int
api_ioam_disable (vat_main_t * vam)
{
vl_api_ioam_disable_t *mp;
- f64 timeout;
M (IOAM_DISABLE, mp);
S (mp);
@@ -8430,7 +8378,6 @@ api_sr_tunnel_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sr_tunnel_add_del_t *mp;
- f64 timeout;
int is_del = 0;
int pl_index;
ip6_address_t src_address;
@@ -8563,7 +8510,6 @@ api_sr_policy_add_del (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_sr_policy_add_del_t *mp;
- f64 timeout;
int is_del = 0;
u8 *name = 0;
u8 *tunnel_name = 0;
@@ -8647,7 +8593,6 @@ api_sr_multicast_map_add_del (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_sr_multicast_map_add_del_t *mp;
- f64 timeout;
int is_del = 0;
ip6_address_t multicast_address;
u8 *policy_name = 0;
@@ -9320,7 +9265,6 @@ api_classify_add_del_table (vat_main_t * vam)
u32 miss_next_index = ~0;
u32 memory_size = 32 << 20;
u8 *mask = 0;
- f64 timeout;
u32 current_data_flag = 0;
int current_data_offset = 0;
@@ -9858,7 +9802,6 @@ api_classify_add_del_session (vat_main_t * vam)
u32 opaque_index = ~0;
u8 *match = 0;
i32 advance = 0;
- f64 timeout;
u32 skip_n_vectors = 0;
u32 match_n_vectors = 0;
u32 action = 0;
@@ -9946,7 +9889,6 @@ api_classify_set_interface_ip_table (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_classify_set_interface_ip_table_t *mp;
- f64 timeout;
u32 sw_if_index;
int sw_if_index_set;
u32 table_index = ~0;
@@ -9991,7 +9933,6 @@ api_classify_set_interface_l2_tables (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_classify_set_interface_l2_tables_t *mp;
- f64 timeout;
u32 sw_if_index;
int sw_if_index_set;
u32 ip4_table_index = ~0;
@@ -10055,7 +9996,6 @@ api_set_ipfix_exporter (vat_main_t * vam)
u32 path_mtu = ~0;
u32 template_interval = ~0;
u8 udp_checksum = 0;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -10114,7 +10054,6 @@ api_set_ipfix_classify_stream (vat_main_t * vam)
vl_api_set_ipfix_classify_stream_t *mp;
u32 domain_id = 0;
u32 src_port = UDP_DST_PORT_ipfix;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -10148,7 +10087,6 @@ api_ipfix_classify_table_add_del (vat_main_t * vam)
u32 classify_table_index = ~0;
u8 ip_version = 0;
u8 transport_protocol = 255;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -10206,7 +10144,6 @@ api_get_node_index (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_get_node_index_t *mp;
- f64 timeout;
u8 *name = 0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -10242,7 +10179,6 @@ api_get_next_index (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_get_next_index_t *mp;
- f64 timeout;
u8 *node_name = 0, *next_node_name = 0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -10292,7 +10228,6 @@ api_add_node_next (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_add_node_next_t *mp;
- f64 timeout;
u8 *name = 0;
u8 *next = 0;
@@ -10351,7 +10286,6 @@ api_l2tpv3_create_tunnel (vat_main_t * vam)
u64 remote_cookie = 0;
u8 l2_sublayer_present = 0;
vl_api_l2tpv3_create_tunnel_t *mp;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -10416,7 +10350,6 @@ api_l2tpv3_set_tunnel_cookies (vat_main_t * vam)
u64 new_local_cookie = 0;
u64 new_remote_cookie = 0;
vl_api_l2tpv3_set_tunnel_cookies_t *mp;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -10455,7 +10388,6 @@ api_l2tpv3_interface_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2tpv3_interface_enable_disable_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 enable_disable = 1;
@@ -10496,7 +10428,6 @@ api_l2tpv3_set_lookup_key (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2tpv3_set_lookup_key_t *mp;
- f64 timeout;
u8 key = ~0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -10594,7 +10525,6 @@ static int
api_sw_if_l2tpv3_tunnel_dump (vat_main_t * vam)
{
vl_api_sw_if_l2tpv3_tunnel_dump_t *mp;
- f64 timeout;
/* Get list of l2tpv3-tunnel interfaces */
M (SW_IF_L2TPV3_TUNNEL_DUMP, mp);
@@ -10641,7 +10571,6 @@ static int
api_sw_interface_tap_dump (vat_main_t * vam)
{
vl_api_sw_interface_tap_dump_t *mp;
- f64 timeout;
print (vam->ofp, "\n%-16s %s", "dev_name", "sw_if_index");
/* Get list of tap interfaces */
@@ -10677,7 +10606,6 @@ api_vxlan_add_del_tunnel (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_vxlan_add_del_tunnel_t *mp;
- f64 timeout;
ip46_address_t src, dst;
u8 is_add = 1;
u8 ipv4_set = 0, ipv6_set = 0;
@@ -10894,7 +10822,6 @@ api_vxlan_tunnel_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_vxlan_tunnel_dump_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -10940,7 +10867,6 @@ api_gre_add_del_tunnel (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_gre_add_del_tunnel_t *mp;
- f64 timeout;
ip4_address_t src4, dst4;
u8 is_add = 1;
u8 teb = 0;
@@ -11034,7 +10960,6 @@ api_gre_tunnel_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_gre_tunnel_dump_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -11080,7 +11005,6 @@ api_l2_fib_clear_table (vat_main_t * vam)
{
// unformat_input_t * i = vam->input;
vl_api_l2_fib_clear_table_t *mp;
- f64 timeout;
M (L2_FIB_CLEAR_TABLE, mp);
@@ -11095,7 +11019,6 @@ api_l2_interface_efp_filter (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_interface_efp_filter_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 enable = 1;
u8 sw_if_index_set = 0;
@@ -11150,7 +11073,6 @@ api_l2_interface_vlan_tag_rewrite (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_interface_vlan_tag_rewrite_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u8 vtr_op_set = 0;
@@ -11207,7 +11129,6 @@ api_create_vhost_user_if (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_create_vhost_user_if_t *mp;
- f64 timeout;
u8 *file_name;
u8 is_server = 0;
u8 file_name_set = 0;
@@ -11277,7 +11198,6 @@ api_modify_vhost_user_if (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_modify_vhost_user_if_t *mp;
- f64 timeout;
u8 *file_name;
u8 is_server = 0;
u8 file_name_set = 0;
@@ -11345,7 +11265,6 @@ api_delete_vhost_user_if (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_delete_vhost_user_if_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u8 sw_if_index_set = 0;
@@ -11420,7 +11339,6 @@ static int
api_sw_interface_vhost_user_dump (vat_main_t * vam)
{
vl_api_sw_interface_vhost_user_dump_t *mp;
- f64 timeout;
print (vam->ofp,
"Interface name idx hdr_sz features server regions filename");
@@ -11441,7 +11359,6 @@ static int
api_show_version (vat_main_t * vam)
{
vl_api_show_version_t *mp;
- f64 timeout;
M (SHOW_VERSION, mp);
@@ -11457,7 +11374,6 @@ api_vxlan_gpe_add_del_tunnel (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_vxlan_gpe_add_del_tunnel_t *mp;
- f64 timeout;
ip4_address_t local4, remote4;
ip6_address_t local6, remote6;
u8 is_add = 1;
@@ -11625,7 +11541,6 @@ api_vxlan_gpe_tunnel_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_vxlan_gpe_tunnel_dump_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -11714,7 +11629,6 @@ api_l2_fib_table_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_fib_table_dump_t *mp;
- f64 timeout;
u32 bd_id;
u8 bd_id_set = 0;
@@ -11757,7 +11671,6 @@ api_interface_name_renumber (vat_main_t * vam)
unformat_input_t *line_input = vam->input;
vl_api_interface_name_renumber_t *mp;
u32 sw_if_index = ~0;
- f64 timeout;
u32 new_show_dev_instance = ~0;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
@@ -11800,7 +11713,6 @@ api_want_ip4_arp_events (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_want_ip4_arp_events_t *mp;
- f64 timeout;
ip4_address_t address;
int address_set = 0;
u32 enable_disable = 1;
@@ -11835,7 +11747,6 @@ api_want_ip6_nd_events (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_want_ip6_nd_events_t *mp;
- f64 timeout;
ip6_address_t address;
int address_set = 0;
u32 enable_disable = 1;
@@ -11870,7 +11781,6 @@ api_input_acl_set_interface (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_input_acl_set_interface_t *mp;
- f64 timeout;
u32 sw_if_index;
int sw_if_index_set;
u32 ip4_table_index = ~0;
@@ -11928,7 +11838,6 @@ api_ip_address_dump (vat_main_t * vam)
u8 sw_if_index_set = 0;
u8 ipv4_set = 0;
u8 ipv6_set = 0;
- f64 timeout;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
@@ -11988,7 +11897,6 @@ api_ip_dump (vat_main_t * vam)
int ipv4_set = 0;
int ipv6_set = 0;
int is_ipv6;
- f64 timeout;
int i;
while (unformat_check_input (in) != UNFORMAT_END_OF_INPUT)
@@ -12041,7 +11949,6 @@ api_ipsec_spd_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_spd_add_del_t *mp;
- f64 timeout;
u32 spd_id = ~0;
u8 is_add = 1;
@@ -12079,7 +11986,6 @@ api_ipsec_interface_add_del_spd (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_interface_add_del_spd_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
u32 spd_id = (u32) ~ 0;
@@ -12133,7 +12039,6 @@ api_ipsec_spd_add_del_entry (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_spd_add_del_entry_t *mp;
- f64 timeout;
u8 is_add = 1, is_outbound = 0, is_ipv6 = 0, is_ip_any = 1;
u32 spd_id = 0, sa_id = 0, protocol = 0, policy = 0;
i32 priority = 0;
@@ -12291,7 +12196,6 @@ api_ipsec_sad_add_del_entry (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_sad_add_del_entry_t *mp;
- f64 timeout;
u32 sad_id = 0, spi = 0;
u8 *ck = 0, *ik = 0;
u8 is_add = 1;
@@ -12423,7 +12327,6 @@ api_ipsec_sa_set_key (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_sa_set_key_t *mp;
- f64 timeout;
u32 sa_id;
u8 *ck = 0, *ik = 0;
@@ -12470,7 +12373,6 @@ api_ikev2_profile_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ikev2_profile_add_del_t *mp;
- f64 timeout;
u8 is_add = 1;
u8 *name = 0;
@@ -12518,7 +12420,6 @@ api_ikev2_profile_set_auth (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ikev2_profile_set_auth_t *mp;
- f64 timeout;
u8 *name = 0;
u8 *data = 0;
u32 auth_method = 0;
@@ -12589,7 +12490,6 @@ api_ikev2_profile_set_id (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ikev2_profile_set_id_t *mp;
- f64 timeout;
u8 *name = 0;
u8 *data = 0;
u8 is_local = 0;
@@ -12669,7 +12569,6 @@ api_ikev2_profile_set_ts (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ikev2_profile_set_ts_t *mp;
- f64 timeout;
u8 *name = 0;
u8 is_local = 0;
u32 proto = 0, start_port = 0, end_port = (u32) ~ 0;
@@ -12740,7 +12639,6 @@ api_ikev2_set_local_key (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ikev2_set_local_key_t *mp;
- f64 timeout;
u8 *file = 0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -12785,7 +12683,6 @@ api_map_add_domain (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_map_add_domain_t *mp;
- f64 timeout;
ip4_address_t ip4_prefix;
ip6_address_t ip6_prefix;
@@ -12865,7 +12762,6 @@ api_map_del_domain (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_map_del_domain_t *mp;
- f64 timeout;
u32 num_m_args = 0;
u32 index;
@@ -12904,7 +12800,6 @@ api_map_add_del_rule (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_map_add_del_rule_t *mp;
- f64 timeout;
u8 is_add = 1;
ip6_address_t ip6_dst;
u32 num_m_args = 0, index, psid = 0;
@@ -12947,7 +12842,6 @@ static int
api_map_domain_dump (vat_main_t * vam)
{
vl_api_map_domain_dump_t *mp;
- f64 timeout;
/* Construct the API message */
M (MAP_DOMAIN_DUMP, mp);
@@ -12969,7 +12863,6 @@ api_map_rule_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_map_rule_dump_t *mp;
- f64 timeout;
u32 domain_index = ~0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -13041,7 +12934,6 @@ static int
api_get_first_msg_id (vat_main_t * vam)
{
vl_api_get_first_msg_id_t *mp;
- f64 timeout;
unformat_input_t *i = vam->input;
u8 *name;
u8 name_set = 0;
@@ -13080,7 +12972,6 @@ api_cop_interface_enable_disable (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_cop_interface_enable_disable_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u8 enable_disable = 1;
@@ -13121,7 +13012,6 @@ api_cop_whitelist_enable_disable (vat_main_t * vam)
{
unformat_input_t *line_input = vam->input;
vl_api_cop_whitelist_enable_disable_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u8 ip4 = 0, ip6 = 0, default_cop = 0;
u32 fib_id = 0;
@@ -13169,7 +13059,6 @@ static int
api_get_node_graph (vat_main_t * vam)
{
vl_api_get_node_graph_t *mp;
- f64 timeout;
M (GET_NODE_GRAPH, mp);
@@ -13246,7 +13135,6 @@ api_lisp_add_del_locator_set (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_locator_set_t *mp;
- f64 timeout = ~0;
u8 is_add = 1;
u8 *locator_set_name = NULL;
u8 locator_set_name_set = 0;
@@ -13333,7 +13221,6 @@ api_lisp_add_del_locator (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_locator_t *mp;
- f64 timeout = ~0;
u32 tmp_if_index = ~0;
u32 sw_if_index = ~0;
u8 sw_if_index_set = 0;
@@ -13473,7 +13360,6 @@ api_lisp_add_del_local_eid (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_local_eid_t *mp;
- f64 timeout = ~0;
u8 is_add = 1;
u8 eid_set = 0;
lisp_eid_vat_t _eid, *eid = &_eid;
@@ -13587,7 +13473,6 @@ api_lisp_gpe_add_del_fwd_entry (vat_main_t * vam)
u32 dp_table = 0, vni = 0;;
unformat_input_t *input = vam->input;
vl_api_lisp_gpe_add_del_fwd_entry_t *mp;
- f64 timeout = ~0;
u8 is_add = 1;
lisp_eid_vat_t _rmt_eid, *rmt_eid = &_rmt_eid;
lisp_eid_vat_t _lcl_eid, *lcl_eid = &_lcl_eid;
@@ -13728,7 +13613,6 @@ api_lisp_add_del_map_server (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_map_server_t *mp;
- f64 timeout = ~0;
u8 is_add = 1;
u8 ipv4_set = 0;
u8 ipv6_set = 0;
@@ -13796,7 +13680,6 @@ api_lisp_add_del_map_resolver (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_map_resolver_t *mp;
- f64 timeout = ~0;
u8 is_add = 1;
u8 ipv4_set = 0;
u8 ipv6_set = 0;
@@ -13864,7 +13747,6 @@ api_lisp_gpe_enable_disable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_gpe_enable_disable_t *mp;
- f64 timeout = ~0;
u8 is_set = 0;
u8 is_en = 1;
@@ -13911,7 +13793,6 @@ api_lisp_rloc_probe_enable_disable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_rloc_probe_enable_disable_t *mp;
- f64 timeout = ~0;
u8 is_set = 0;
u8 is_en = 0;
@@ -13955,7 +13836,6 @@ api_lisp_map_register_enable_disable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_map_register_enable_disable_t *mp;
- f64 timeout = ~0;
u8 is_set = 0;
u8 is_en = 0;
@@ -13999,7 +13879,6 @@ api_lisp_enable_disable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_enable_disable_t *mp;
- f64 timeout = ~0;
u8 is_set = 0;
u8 is_en = 0;
@@ -14043,7 +13922,6 @@ api_lisp_enable_disable (vat_main_t * vam)
static int
api_show_lisp_map_register_state (vat_main_t * vam)
{
- f64 timeout = ~0;
vl_api_show_lisp_map_register_state_t *mp;
M (SHOW_LISP_MAP_REGISTER_STATE, mp);
@@ -14060,7 +13938,6 @@ api_show_lisp_map_register_state (vat_main_t * vam)
static int
api_show_lisp_rloc_probe_state (vat_main_t * vam)
{
- f64 timeout = ~0;
vl_api_show_lisp_rloc_probe_state_t *mp;
M (SHOW_LISP_RLOC_PROBE_STATE, mp);
@@ -14077,7 +13954,6 @@ api_show_lisp_rloc_probe_state (vat_main_t * vam)
static int
api_show_lisp_map_request_mode (vat_main_t * vam)
{
- f64 timeout = ~0;
vl_api_show_lisp_map_request_mode_t *mp;
M (SHOW_LISP_MAP_REQUEST_MODE, mp);
@@ -14094,7 +13970,6 @@ api_show_lisp_map_request_mode (vat_main_t * vam)
static int
api_lisp_map_request_mode (vat_main_t * vam)
{
- f64 timeout = ~0;
unformat_input_t *input = vam->input;
vl_api_lisp_map_request_mode_t *mp;
u8 mode = 0;
@@ -14136,7 +14011,6 @@ api_lisp_map_request_mode (vat_main_t * vam)
static int
api_lisp_pitr_set_locator_set (vat_main_t * vam)
{
- f64 timeout = ~0;
u8 ls_name_set = 0;
unformat_input_t *input = vam->input;
vl_api_lisp_pitr_set_locator_set_t *mp;
@@ -14183,7 +14057,6 @@ static int
api_show_lisp_pitr (vat_main_t * vam)
{
vl_api_show_lisp_pitr_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -14207,7 +14080,6 @@ api_show_lisp_pitr (vat_main_t * vam)
static int
api_lisp_eid_table_add_del_map (vat_main_t * vam)
{
- f64 timeout = ~0;
unformat_input_t *input = vam->input;
vl_api_lisp_eid_table_add_del_map_t *mp;
u8 is_add = 1, vni_set = 0, vrf_set = 0, bd_index_set = 0;
@@ -14297,7 +14169,6 @@ api_lisp_add_del_remote_mapping (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_remote_mapping_t *mp;
- f64 timeout = ~0;
u32 vni = 0;
lisp_eid_vat_t _eid, *eid = &_eid;
lisp_eid_vat_t _seid, *seid = &_seid;
@@ -14424,7 +14295,6 @@ api_lisp_add_del_adjacency (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_adjacency_t *mp;
- f64 timeout = ~0;
u32 vni = 0;
ip4_address_t leid4, reid4;
ip6_address_t leid6, reid6;
@@ -14545,7 +14415,6 @@ api_lisp_gpe_add_del_iface (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_gpe_add_del_iface_t *mp;
- f64 timeout = ~0;
u8 action_set = 0, is_add = 1, is_l2 = 0, dp_table_set = 0, vni_set = 0;
u32 dp_table = 0, vni = 0;
@@ -14619,7 +14488,6 @@ api_lisp_add_del_map_request_itr_rlocs (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_add_del_map_request_itr_rlocs_t *mp;
- f64 timeout = ~0;
u8 *locator_set_name = 0;
u8 locator_set_name_set = 0;
u8 is_add = 1;
@@ -14683,7 +14551,6 @@ api_lisp_locator_dump (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_lisp_locator_dump_t *mp;
- f64 timeout = ~0;
u8 is_index_set = 0, is_name_set = 0;
u8 *ls_name = 0;
u32 ls_index = ~0;
@@ -14762,7 +14629,6 @@ api_lisp_locator_set_dump (vat_main_t * vam)
{
vl_api_lisp_locator_set_dump_t *mp;
unformat_input_t *input = vam->input;
- f64 timeout = ~0;
u8 filter = 0;
/* Parse args required to build the message */
@@ -14815,7 +14681,6 @@ api_lisp_eid_table_map_dump (vat_main_t * vam)
u8 mode_set = 0;
unformat_input_t *input = vam->input;
vl_api_lisp_eid_table_map_dump_t *mp;
- f64 timeout = ~0;
/* Parse args required to build the message */
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -14871,7 +14736,6 @@ static int
api_lisp_eid_table_vni_dump (vat_main_t * vam)
{
vl_api_lisp_eid_table_vni_dump_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -14901,7 +14765,6 @@ api_lisp_eid_table_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_lisp_eid_table_dump_t *mp;
- f64 timeout = ~0;
struct in_addr ip4;
struct in6_addr ip6;
u8 mac[6];
@@ -15002,7 +14865,6 @@ api_lisp_gpe_fwd_entries_get (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_lisp_gpe_fwd_entries_get_t *mp;
- f64 timeout = ~0;
u8 vni_set = 0;
u32 vni = ~0;
@@ -15054,7 +14916,6 @@ api_lisp_adjacencies_get (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_lisp_adjacencies_get_t *mp;
- f64 timeout = ~0;
u8 vni_set = 0;
u32 vni = ~0;
@@ -15099,7 +14960,6 @@ static int
api_lisp_map_server_dump (vat_main_t * vam)
{
vl_api_lisp_map_server_dump_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -15127,7 +14987,6 @@ static int
api_lisp_map_resolver_dump (vat_main_t * vam)
{
vl_api_lisp_map_resolver_dump_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -15155,7 +15014,6 @@ static int
api_show_lisp_status (vat_main_t * vam)
{
vl_api_show_lisp_status_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -15176,7 +15034,6 @@ static int
api_lisp_gpe_fwd_entry_path_dump (vat_main_t * vam)
{
vl_api_lisp_gpe_fwd_entry_path_dump_t *mp;
- f64 timeout = ~0;
unformat_input_t *i = vam->input;
u32 fwd_entry_index = ~0;
@@ -15220,7 +15077,6 @@ static int
api_lisp_get_map_request_itr_rlocs (vat_main_t * vam)
{
vl_api_lisp_get_map_request_itr_rlocs_t *mp;
- f64 timeout = ~0;
if (!vam->json_output)
{
@@ -15242,7 +15098,6 @@ api_af_packet_create (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_af_packet_create_t *mp;
- f64 timeout;
u8 *host_if_name = 0;
u8 hw_addr[6];
u8 random_hw_addr = 1;
@@ -15289,7 +15144,6 @@ api_af_packet_delete (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_af_packet_delete_t *mp;
- f64 timeout;
u8 *host_if_name = 0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -15328,7 +15182,6 @@ api_policer_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_policer_add_del_t *mp;
- f64 timeout;
u8 is_add = 1;
u8 *name = 0;
u32 cir = 0;
@@ -15428,7 +15281,6 @@ api_policer_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_policer_dump_t *mp;
- f64 timeout = ~0;
u8 *match_name = 0;
u8 match_name_valid = 0;
@@ -15468,7 +15320,6 @@ api_policer_classify_set_interface (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_policer_classify_set_interface_t *mp;
- f64 timeout;
u32 sw_if_index;
int sw_if_index_set;
u32 ip4_table_index = ~0;
@@ -15522,7 +15373,6 @@ api_policer_classify_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_policer_classify_dump_t *mp;
- f64 timeout = ~0;
u8 type = POLICER_CLASSIFY_N_TABLES;
if (unformat (i, "type %U", unformat_policer_classify_table_type, &type))
@@ -15561,7 +15411,6 @@ api_netmap_create (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_netmap_create_t *mp;
- f64 timeout;
u8 *if_name = 0;
u8 hw_addr[6];
u8 random_hw_addr = 1;
@@ -15618,7 +15467,6 @@ api_netmap_delete (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_netmap_delete_t *mp;
- f64 timeout;
u8 *if_name = 0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -15705,7 +15553,6 @@ static int
api_mpls_tunnel_dump (vat_main_t * vam)
{
vl_api_mpls_tunnel_dump_t *mp;
- f64 timeout;
i32 index = -1;
/* Parse args required to build the message */
@@ -15818,7 +15665,6 @@ static int
api_mpls_fib_dump (vat_main_t * vam)
{
vl_api_mpls_fib_dump_t *mp;
- f64 timeout;
M (MPLS_FIB_DUMP, mp);
S (mp);
@@ -15919,7 +15765,6 @@ static int
api_ip_fib_dump (vat_main_t * vam)
{
vl_api_ip_fib_dump_t *mp;
- f64 timeout;
M (IP_FIB_DUMP, mp);
S (mp);
@@ -15987,7 +15832,6 @@ api_ip_neighbor_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ip_neighbor_dump_t *mp;
- f64 timeout;
u8 is_ipv6 = 0;
u32 sw_if_index = ~0;
@@ -16111,7 +15955,6 @@ static int
api_ip6_fib_dump (vat_main_t * vam)
{
vl_api_ip6_fib_dump_t *mp;
- f64 timeout;
M (IP6_FIB_DUMP, mp);
S (mp);
@@ -16129,7 +15972,6 @@ int
api_classify_table_ids (vat_main_t * vam)
{
vl_api_classify_table_ids_t *mp;
- f64 timeout;
/* Construct the API message */
M (CLASSIFY_TABLE_IDS, mp);
@@ -16146,7 +15988,6 @@ api_classify_table_by_interface (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_classify_table_by_interface_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -16180,7 +16021,6 @@ api_classify_table_info (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_classify_table_info_t *mp;
- f64 timeout;
u32 table_id = ~0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -16212,7 +16052,6 @@ api_classify_session_dump (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_classify_session_dump_t *mp;
- f64 timeout;
u32 table_id = ~0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -16296,7 +16135,6 @@ int
api_ipfix_exporter_dump (vat_main_t * vam)
{
vl_api_ipfix_exporter_dump_t *mp;
- f64 timeout;
/* Construct the API message */
M (IPFIX_EXPORTER_DUMP, mp);
@@ -16312,7 +16150,6 @@ static int
api_ipfix_classify_stream_dump (vat_main_t * vam)
{
vl_api_ipfix_classify_stream_dump_t *mp;
- f64 timeout;
/* Construct the API message */
M (IPFIX_CLASSIFY_STREAM_DUMP, mp);
@@ -16356,7 +16193,6 @@ static int
api_ipfix_classify_table_dump (vat_main_t * vam)
{
vl_api_ipfix_classify_table_dump_t *mp;
- f64 timeout;
if (!vam->json_output)
{
@@ -16415,7 +16251,6 @@ api_sw_interface_span_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_span_enable_disable_t *mp;
- f64 timeout;
u32 src_sw_if_index = ~0;
u32 dst_sw_if_index = ~0;
u8 state = 3;
@@ -16542,7 +16377,6 @@ static int
api_sw_interface_span_dump (vat_main_t * vam)
{
vl_api_sw_interface_span_dump_t *mp;
- f64 timeout;
M (SW_INTERFACE_SPAN_DUMP, mp);
S (mp);
@@ -16561,7 +16395,6 @@ api_pg_create_interface (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_pg_create_interface_t *mp;
- f64 timeout;
u32 if_id = ~0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -16593,7 +16426,6 @@ api_pg_capture (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_pg_capture_t *mp;
- f64 timeout;
u32 if_id = ~0;
u8 enable = 1;
@@ -16652,7 +16484,6 @@ api_pg_enable_disable (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_pg_enable_disable_t *mp;
- f64 timeout;
u8 enable = 1;
u8 stream_name_set = 0;
@@ -16699,7 +16530,6 @@ api_ip_source_and_port_range_check_add_del (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_ip_source_and_port_range_check_add_del_t *mp;
- f64 timeout;
u16 *low_ports = 0;
u16 *high_ports = 0;
@@ -16830,7 +16660,6 @@ api_ip_source_and_port_range_check_interface_add_del (vat_main_t * vam)
{
unformat_input_t *input = vam->input;
vl_api_ip_source_and_port_range_check_interface_add_del_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
int vrf_set = 0;
u32 tcp_out_vrf_id = ~0, udp_out_vrf_id = ~0;
@@ -16899,7 +16728,6 @@ api_ipsec_gre_add_del_tunnel (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_gre_add_del_tunnel_t *mp;
- f64 timeout;
u32 local_sa_id = 0;
u32 remote_sa_id = 0;
ip4_address_t src_address;
@@ -16944,7 +16772,6 @@ api_punt (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_punt_t *mp;
- f64 timeout;
u32 ipv = ~0;
u32 protocol = ~0;
u32 port = ~0;
@@ -17021,7 +16848,6 @@ api_ipsec_gre_tunnel_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_ipsec_gre_tunnel_dump_t *mp;
- f64 timeout;
u32 sw_if_index;
u8 sw_if_index_set = 0;
@@ -17067,7 +16893,6 @@ api_delete_subif (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_delete_subif_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@ -17104,7 +16929,6 @@ api_l2_interface_pbb_tag_rewrite (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_l2_interface_pbb_tag_rewrite_t *mp;
- f64 timeout;
u32 sw_if_index = ~0, vtr_op = ~0;
u16 outer_tag = ~0;
u8 dmac[6], smac[6];
@@ -17190,7 +17014,6 @@ api_flow_classify_set_interface (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_flow_classify_set_interface_t *mp;
- f64 timeout;
u32 sw_if_index;
int sw_if_index_set;
u32 ip4_table_index = ~0;
@@ -17240,7 +17063,6 @@ api_flow_classify_dump (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_flow_classify_dump_t *mp;
- f64 timeout = ~0;
u8 type = FLOW_CLASSIFY_N_TABLES;
if (unformat (i, "type %U", unformat_flow_classify_table_type, &type))
@@ -17279,7 +17101,6 @@ api_feature_enable_disable (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_feature_enable_disable_t *mp;
- f64 timeout;
u8 *arc_name = 0;
u8 *feature_name = 0;
u32 sw_if_index = ~0;
@@ -17346,7 +17167,6 @@ api_sw_interface_tag_add_del (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_tag_add_del_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u8 *tag = 0;
u8 enable = 1;
@@ -17422,7 +17242,6 @@ static int
api_l2_xconnect_dump (vat_main_t * vam)
{
vl_api_l2_xconnect_dump_t *mp;
- f64 timeout;
if (!vam->json_output)
{
@@ -17447,7 +17266,6 @@ api_sw_interface_set_mtu (vat_main_t * vam)
{
unformat_input_t *i = vam->input;
vl_api_sw_interface_set_mtu_t *mp;
- f64 timeout;
u32 sw_if_index = ~0;
u32 mtu = 0;
diff --git a/src/vlibapi/vat_helper_macros.h b/src/vlibapi/vat_helper_macros.h
index 172fe2db4a8..ffb74fe3b9b 100644
--- a/src/vlibapi/vat_helper_macros.h
+++ b/src/vlibapi/vat_helper_macros.h
@@ -44,7 +44,7 @@ do { \
/* W: wait for results, with timeout */
#define W \
do { \
- timeout = vat_time_now (vam) + 1.0; \
+ f64 timeout = vat_time_now (vam) + 1.0; \
\
while (vat_time_now (vam) < timeout) { \
if (vam->result_ready == 1) { \
@@ -58,7 +58,7 @@ do { \
/* W2: wait for results, with timeout */
#define W2(body) \
do { \
- timeout = vat_time_now (vam) + 1.0; \
+ f64 timeout = vat_time_now (vam) + 1.0; \
\
while (vat_time_now (vam) < timeout) { \
if (vam->result_ready == 1) { \