|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
30 #include <ioam/lib-pot/pot.api_enum.h>
31 #include <ioam/lib-pot/pot.api_types.h>
33 #define REPLY_MSG_ID_BASE sm->msg_id_base
41 vl_api_pot_profile_add_reply_t * rmp;
53 clib_net_to_host_u64(mp->
prime),
55 clib_net_to_host_u64(mp->
lpc),
82 rmp->
prime=clib_host_to_net_u64(profile->
prime);
84 rmp->
lpc=clib_host_to_net_u64(profile->
lpc);
106 u8 dump_call_id = ~0;
107 if(dump_call_id==
id){
120 vl_api_pot_profile_add_reply_t * rmp;
142 vl_api_pot_profile_del_reply_t * rmp;
149 #include <ioam/lib-pot/pot.api.c>
int pot_profile_list_is_enabled(u8 *name)
#define REPLY_MACRO2(t, body)
pot_profile * pot_profile_find(u8 id)
static void send_pot_profile_details(vl_api_pot_profile_show_config_dump_t *mp, u8 id)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Proof of Transit(POT): Activate POT profile in the list.
static void vl_api_pot_profile_del_t_handler(vl_api_pot_profile_del_t *mp)
vnet_main_t * vnet_get_main(void)
static void vl_api_pot_profile_show_config_dump_t_handler(vl_api_pot_profile_show_config_dump_t *mp)
static void setup_message_id_table(api_main_t *am)
static void vl_api_pot_profile_add_t_handler(vl_api_pot_profile_add_t *mp)
static clib_error_t * pot_init(vlib_main_t *vm)
#define vec_free(V)
Free vector's memory (no header).
Proof of Transit(POT): Set POT profile.
void pot_profile_list_init(u8 *profile_list_name)
static void vl_api_pot_profile_activate_t_handler(vl_api_pot_profile_activate_t *mp)
#define VLIB_INIT_FUNCTION(x)
u8 * vl_api_from_api_to_new_vec(void *mp, vl_api_string_t *astr)
int pot_set_validator(pot_profile *profile, u64 key)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static int pot_profile_set_active(u8 id)
int pot_profile_create(pot_profile *profile, u64 prime, u64 poly2, u64 lpc, u64 secret_share)
int pot_profile_set_bit_mask(pot_profile *profile, u16 bits)
void clear_pot_profiles()