Go to the source code of this file.
|
static void | scv_profile_init (scv_profile *new, u16 id) |
|
u8 | scv_get_max_profiles (void) |
|
scv_profile * | scv_profile_find (u16 id) |
|
void | scv_init (u8 *path_name, u8 max, u8 indx) |
|
void | scv_profile_cleanup (scv_profile *profile) |
|
void | scv_profile_create (scv_profile *profile, u64 prime, u64 poly2, u64 lpc, u64 secret_share, u64 validity) |
|
void | scv_set_validator (scv_profile *profile, u64 key) |
|
static u64 | sc_update_cumulative (u64 cumulative, u64 random, u64 secret_share, u64 prime, u64 lpc, u64 pre_split, double prime_inv) |
|
u64 | scv_update_cumulative (scv_profile *profile, u64 cumulative, u64 random) |
|
static u8 | sc_validate (u64 secret, u64 prime, double prime_inv, u64 cumulative, u64 random) |
|
u8 | scv_validate (scv_profile *profile, u64 cumulative, u64 random) |
|
u64 | scv_generate_random (scv_profile *profile) |
|
void | scv_profile_set_bit_mask (scv_profile *profile, u16 bits) |
|
clib_error_t * | clear_scv_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
void | clear_scv_profiles () |
|
static clib_error_t * | set_scv_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | show_scv_profile_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | test_profile_renew_refresh_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | set_scv_init_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
#define TEST_PROFILE_REFRESH 2 |
#define TEST_PROFILE_RENEW 1 |
void clear_scv_profiles |
( |
| ) |
|
static u64 sc_update_cumulative |
( |
u64 |
cumulative, |
|
|
u64 |
random, |
|
|
u64 |
secret_share, |
|
|
u64 |
prime, |
|
|
u64 |
lpc, |
|
|
u64 |
pre_split, |
|
|
double |
prime_inv |
|
) |
| |
|
inlinestatic |
static u8 sc_validate |
( |
u64 |
secret, |
|
|
u64 |
prime, |
|
|
double |
prime_inv, |
|
|
u64 |
cumulative, |
|
|
u64 |
random |
|
) |
| |
|
static |
u8 scv_get_max_profiles |
( |
void |
| ) |
|
Initial value:=
{
.path = "clear scv profile",
.short_help = "clear scv profile [<index>|all]",
}
clib_error_t * clear_scv_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (clear_scv_profile_command)
Definition at line 260 of file scv_util.c.
u16 invalid_profile_start_index = 0 |
f64 next_time_to_send = 0 |
u8 number_of_invalid_profiles = 0 |
u16 pow_profile_index = 0 |
Initial value:=
{
.path = "set scv-init ",
.short_help =
"set scv-init path-name <string> start-index <index> num-profiles <number>",
}
static clib_error_t * set_scv_init_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_ioam_sc_init_command)
Definition at line 480 of file scv_util.c.
Initial value:=
{
.path = "set scv profile",
.short_help = "set scv profile id [0-16] [validator-key 0xu64] \
prime-number 0xu64 secret_share 0xu64 lpc 0xu64 \
polynomial2 0xu64 bits-in-random [0-64] ",
}
static clib_error_t * set_scv_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (set_scv_profile_command)
Definition at line 321 of file scv_util.c.
Initial value:=
{
.path = "show scv profile",
.short_help = "show scv profile",
}
static clib_error_t * show_scv_profile_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_scv_profile_command)
Definition at line 396 of file scv_util.c.
Initial value:=
{
.path = "test ioam profile-notification ",
.short_help =
"test ioam profile-notification path-name <string> start-index <index> num-profiles <number> <renew|refresh>",
}
static clib_error_t * test_profile_renew_refresh_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (test_ioam_profile_renew_refresh_cmd)
Definition at line 453 of file scv_util.c.
u64 total_pkts_using_this_profile = 0 |