16 #ifndef included_vnet_dhcp6_client_common_dp_h 17 #define included_vnet_dhcp6_client_common_dp_h 59 #define CLIENT_DUID_LENGTH sizeof (client_duid) 60 #define DHCPV6_CLIENT_IAID 1 71 static u8 seed_set = 0;
77 return random_f64 (&seed) * (to - from) + from;
82 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
83 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02}
static uword random_default_seed(void)
Default random seed (unix/linux user-mode)
#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)