Searched refs:random (Results 1 - 25 of 59) sorted by relevance

123

/vpp/src/plugins/ioam/encap/
H A Dip6_ioam_pot.h27 u64 random;
H A Dip6_ioam_pot.c70 u64 random, cumulative; local
71 random = cumulative = 0;
74 random = clib_net_to_host_u64 (pot0->random);
78 s = format (s, "random = 0x%Lx, Cumulative = 0x%Lx, Index = 0x%x",
79 random, cumulative, pot0 ? pot0->reserved_profile_id : ~0);
100 u64 random = 0, cumulative = 0; local
107 pot_encap = (pot0->random == 0);
146 if (pot0->random == 0)
148 pot0->random
167 u64 random = 0; local
[all...]
/vpp/src/plugins/ioam/lib-pot/
H A Dpot_util.c147 always_inline u64 pot_update_cumulative_inline(u64 cumulative, u64 random, argument
154 * calculate split share for random
156 share_random = add64_mod(pre_split, random, prime, prime_inv);
169 u64 pot_update_cumulative(pot_profile * profile, u64 cumulative, u64 random) argument
173 return (pot_update_cumulative_inline(cumulative, random, profile->secret_share,
181 u64 cumulative, u64 random)
183 if (cumulative == (random + secret))
187 else if (cumulative == add64_mod(random, secret, prime, prime_inv))
197 u8 pot_validate(pot_profile * profile, u64 cumulative, u64 random) argument
202 profile->primeinv, cumulative, random));
180 pot_validate_inline(u64 secret, u64 prime, double prime_inv, u64 cumulative, u64 random) argument
212 u64 random = 0; local
[all...]
H A Dpot_util.h40 * pot_profile_set_bit_mask - To setup how large we want the numbers used in the computation and random number <= 64 bits
59 u64 random; member in struct:pot_profile_
119 * Setup max bits to be used for random number generation
125 * Given a random and cumulative compute the new cumulative for a given profile
127 u64 pot_update_cumulative(pot_profile * profile, u64 cumulative, u64 random);
132 u8 pot_validate(pot_profile * profile, u64 cumulative, u64 random);
135 * Utility function to get random number per pack
/vpp/extras/deprecated/vppinfra/
H A Danneal.h22 #include <vppinfra/random.h>
H A Dtest_zvec.c40 #include <vppinfra/random.h>
H A Dtest_phash.c40 #include <vppinfra/random.h>
60 && 0 == unformat (input, "random-keys %=", &random_keys, 1)
80 ("%d %d-bit keys, random seed %d, %s mode, looking for %sminimal hash",
87 /* Initialize random keys. */
/vpp/src/vppinfra/
H A Drandom.c38 #include <vppinfra/random.h>
40 /** \file random.c
44 /** \brief Default random seed for standalone version of library.
54 * are uniformly distributed (aka random).
H A Dtest_fifo.c39 #include <vppinfra/random.h>
H A Dtest_random_isaac.c40 #include <vppinfra/random.h>
H A Dtest_pmalloc.c18 #include <vppinfra/random.h>
/vpp/src/scripts/vnet/leftpeer/
H A Dleftpeer-sr.conf19 tap connect srlocal hwaddr random
/vpp/src/scripts/vnet/rightpeer/
H A Drightpeer-sr.conf23 tap connect srlocal hwaddr random
/vpp/test/
H A Dtest_l2xc.py4 import random namespace
126 dst_host = random.choice(self.hosts_by_pg_idx[dst_if.sw_if_index])
127 src_host = random.choice(self.hosts_by_pg_idx[src_if.sw_if_index])
135 size = random.choice(packet_sizes)
H A Dtest_l2bd.py4 import random namespace
163 dst_host = random.choice(self.hosts_by_pg_idx[dst_if.sw_if_index])
164 src_host = random.choice(self.hosts_by_pg_idx[src_if.sw_if_index])
174 size = random.choice(packet_sizes)
H A Dtest_ip_ecmp.py4 import random namespace
96 random.randint(0, 2 ** (ip_max_len - ip_prefix_len) - 2))
120 size = random.choice(packet_sizes)
H A Dtest_ip4_vrf_multi_instance.py66 import random namespace
240 src_host = random.choice(src_hosts)
248 size = random.choice(packet_sizes)
272 src_host = random.choice(src_hosts)
280 size = random.choice(packet_sizes)
H A Dtest_l2xc_multi_instance.py55 import random namespace
216 src_host = random.choice(src_hosts)
224 size = random.choice(packet_sizes)
H A Dtest_ip6_vrf_multi_instance.py67 import random namespace
254 src_host = random.choice(src_hosts)
262 size = random.choice(packet_sizes)
286 src_host = random.choice(src_hosts)
294 size = random.choice(packet_sizes)
H A Dtest_l2bd_multi_instance.py66 import random namespace
242 src_host = random.choice(src_hosts)
248 size = random.choice(packet_sizes)
/vpp/src/plugins/acl/test/
H A Dtest_classify_l2_acl.py6 import random namespace
214 return UDP(sport=random.randint(self.udp_sport_from,
216 dport=random.randint(self.udp_dport_from,
222 return TCP(sport=random.randint(self.tcp_sport_from,
224 dport=random.randint(self.tcp_dport_from,
257 pkt_info.ip = random.choice([0, 1])
259 pkt_info.proto = random.choice(self.proto[self.IP])
291 size = random.choice(packet_sizes)
H A Dtest_acl_plugin_macip.py7 import random namespace
209 host = random.choice(self.loop0.remote_hosts)
251 ip4[3] = random.randint(100, 200)
252 ip6[15] = random.randint(100, 200)
254 ip4[2] = random.randint(100, 200)
256 ip6[7] = random.randint(100, 200)
390 mac[i] = format(random.randint(0, 255), "02x")
400 sub_ip[0] = random.randint(240, 254)
401 sub_ip[1] = random.randint(230, 239)
402 sub_ip[14] = random
[all...]
H A Dtest_acl_plugin.py6 import random namespace
229 return UDP(sport=random.randint(self.udp_sport_from,
231 dport=random.randint(self.udp_dport_from,
237 return TCP(sport=random.randint(self.tcp_sport_from,
239 dport=random.randint(self.tcp_dport_from,
272 pkt_info.ip = random.choice([0, 1])
274 pkt_info.proto = random.choice(self.proto[self.IP])
306 size = random.choice(packet_sizes)
913 port = random.randint(16384, 65535)
935 port = random
[all...]
/vpp/src/tools/perftool/
H A Delog_merge.c41 #include <vppinfra/random.h>
/vpp/src/plugins/ioam/analyse/ip6/
H A Dnode.c378 u64 random = 0; local
387 random = clib_net_to_host_u64 (pot0->random);
390 ret = pot_validate (pot_profile, cumulative, random);

Completed in 19 milliseconds

123