#include <vat/vat.h>
#include <vlibapi/api.h>
#include <vlibmemory/api.h>
-#include <vlibsocket/api.h>
+
#include <vppinfra/error.h>
#define __plugin_msg_base pot_test_main.msg_id_base
u64 secret_key = 0;
u32 bits = MAX_BITS;
u64 lpc = 0, poly2 = 0;
- f64 timeout;
u8 id = 0;
int rv = 0;
+ int ret;
while (unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
{
mp->max_bits = bits;
S(mp);
- W;
+ W (ret);
+ return ret;
OUT:
vec_free(name);
u8 *name = NULL;
u8 id = 0;
int rv = 0;
- f64 timeout;
+ int ret;
while (unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
{
mp->id = id;
S(mp);
- W;
+ W (ret);
+ return ret;
OUT:
vec_free(name);
static int api_pot_profile_del (vat_main_t *vam)
{
vl_api_pot_profile_del_t *mp;
- f64 timeout;
+ int ret;
M(POT_PROFILE_DEL, mp);
mp->list_name_len = 0;
S(mp);
- W;
- return 0;
+ W (ret);
+ return ret;
}
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;
+ int ret;
while(unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
{
mp->id = id;
S(mp);
- W;
- return 0;
+ W (ret);
+ return ret;
}
/*
#undef _
}
-clib_error_t * vat_plugin_register (vat_main_t *vam)
+clib_error_t *
+pot_vat_plugin_register (vat_main_t *vam)
{
pot_test_main_t * sm = &pot_test_main;
u8 * name;