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)
static pot_profile * pot_profile_get_active(void)
static u8 pot_profile_get_active_id(void)
int pot_profile_set_bit_mask(pot_profile *profile, u16 bits)
void clear_pot_profiles()
static int pot_profile_set_active(u8 id)
u8 pot_validate(pot_profile *profile, u64 cumulative, u64 random)
pot_profile * pot_profile_find(u8 id)
struct pot_profile_ pot_profile
Usage:
int pot_profile_create(pot_profile *profile, u64 prime, u64 poly2, u64 lpc, u64 secret_share)
int pot_profile_list_is_enabled(u8 *name)
void pot_profile_list_init(u8 *name)
static void pot_profile_reset_usage_stats(pot_profile *pow)
u64 total_pkts_using_this_profile
u64 pot_update_cumulative(pot_profile *profile, u64 cumulative, u64 random)
static void pot_profile_incr_usage_stats(pot_profile *pow)
static u16 pot_profile_get_id(pot_profile *profile)
u64 pot_generate_random(pot_profile *profile)
static u8 pot_is_decap(pot_profile *p)
int pot_set_validator(pot_profile *profile, u64 key)