MCPcopy Create free account
hub / github.com/F-Stack/f-stack / complete_v6_addr

Function complete_v6_addr

dpdk/app/test-fib/main.c:349–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static void
350complete_v6_addr(uint32_t *addr, uint32_t rnd, int n)
351{
352 int i;
353
354 for (i = 0; i < n; i++)
355 addr[i] = rte_rand();
356 addr[i++] = rnd;
357 for (; i < 4; i++)
358 addr[i] = 0;
359}
360
361static void
362gen_random_rt_6(struct rt_rule_6 *rt, int nh_sz)

Callers 1

gen_random_rt_6Function · 0.85

Calls 1

rte_randFunction · 0.85

Tested by

no test coverage detected