|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
18 #ifndef include_vnet_pot_util_h
19 #define include_vnet_pot_util_h
22 #define debug_ioam debug_ioam_fn
24 #define PATH_NAME_SIZE 256
28 #define MAX_POT_PROFILES 2
105 return (profile->
id);
156 if (profile && profile->
valid) {
158 current_active_prof->
in_use = 0;
175 if (profile && profile->
in_use)
void clear_pot_profiles()
u64 pot_generate_random(pot_profile *profile)
static u16 pot_profile_get_id(pot_profile *profile)
struct pot_profile_ pot_profile
Usage:
pot_profile * pot_profile_find(u8 id)
static void pot_profile_reset_usage_stats(pot_profile *pow)
static void pot_profile_incr_usage_stats(pot_profile *pow)
u8 pot_validate(pot_profile *profile, u64 cumulative, u64 random)
int pot_profile_list_is_enabled(u8 *name)
void pot_profile_list_init(u8 *name)
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)
static pot_profile * pot_profile_get_active(void)
u64 pot_update_cumulative(pot_profile *profile, u64 cumulative, u64 random)
int pot_set_validator(pot_profile *profile, u64 key)
static u8 pot_profile_get_active_id(void)
static u8 pot_is_decap(pot_profile *p)
static int pot_profile_set_active(u8 id)
u64 total_pkts_using_this_profile