16 #ifndef included_vnet_dhcp6_client_common_dp_h 17 #define included_vnet_dhcp6_client_common_dp_h 35 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 79 #define CLIENT_DUID_LENGTH sizeof (client_duid) 80 #define DHCPV6_CLIENT_IAID 1 95 static u8 seed_set = 0;
101 return random_f64 (&seed) * (to - from) + from;
106 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
107 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02}
static uword random_default_seed(void)
Default random seed (unix/linux user-mode)
void vl_api_dhcp6_duid_ll_set_t_handler(vl_api_dhcp6_duid_ll_set_t *mp)
#define static_always_inline
dhcpv6_duid_ll_string_t client_duid
dhcp6_client_common_main_t dhcp6_client_common_main
void dhcp6_clients_enable_disable(u8 enable)
u32 server_index_get_or_create(u8 *data, u16 len)
static f64 random_f64(u32 *seed)
Generate f64 random number in the interval [0,1].
static_always_inline f64 random_f64_from_to(f64 from, f64 to)