Lines Matching +full:128 +full:k
35 } else if (bits == 128) { in print_node()
256 unsigned int i, j, k, mutate_amount, cidr; in randomized_test() local
304 for (k = 0; k < mutate_amount / 8; ++k) in randomized_test()
305 mutate_mask[k] = 0xff; in randomized_test()
306 mutate_mask[k] = 0xff in randomized_test()
308 for (; k < 4; ++k) in randomized_test()
309 mutate_mask[k] = 0; in randomized_test()
310 for (k = 0; k < 4; ++k) in randomized_test()
311 mutated[k] = (mutated[k] & mutate_mask[k]) | in randomized_test()
312 (~mutate_mask[k] & in randomized_test()
332 cidr = get_random_u32_inclusive(1, 128); in randomized_test()
347 mutate_amount = get_random_u32_below(128); in randomized_test()
348 for (k = 0; k < mutate_amount / 8; ++k) in randomized_test()
349 mutate_mask[k] = 0xff; in randomized_test()
350 mutate_mask[k] = 0xff in randomized_test()
352 for (; k < 4; ++k) in randomized_test()
353 mutate_mask[k] = 0; in randomized_test()
354 for (k = 0; k < 4; ++k) in randomized_test()
355 mutated[k] = (mutated[k] & mutate_mask[k]) | in randomized_test()
356 (~mutate_mask[k] & in randomized_test()
358 cidr = get_random_u32_inclusive(1, 128); in randomized_test()
379 print_tree(t.root6, 128); in randomized_test()
391 if (lookup(t.root6, 128, ip) != horrible_allowedips_lookup_v6(&h, (struct in6_addr *)ip)) { in randomized_test()
473 bool _s = lookup(t.root##version, (version) == 4 ? 32 : 128, \
479 bool _s = lookup(t.root##version, (version) == 4 ? 32 : 128, \
519 insert(6, d, 0x26075300, 0x60006b00, 0, 0xc05f0543, 128); in wg_allowedips_selftest()
528 insert(6, a, 0x24046800, 0x40040800, 0xdeadbeef, 0xdeadbeef, 128); in wg_allowedips_selftest()
529 insert(6, c, 0x24446800, 0x40e40800, 0xdeaebeef, 0xdefbeef, 128); in wg_allowedips_selftest()
535 insert(4, b, 10, 0, 0, 128, 25); in wg_allowedips_selftest()
543 print_tree(t.root6, 128); in wg_allowedips_selftest()
568 test(4, h, 64, 15, 123, 128); in wg_allowedips_selftest()
579 insert(4, a, 128, 0, 0, 0, 32); in wg_allowedips_selftest()
585 test_negative(4, a, 128, 0, 0, 0); in wg_allowedips_selftest()
603 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
606 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
609 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
614 insert(6, a, 0x26075300, 0x60006b00, 0, 0xc05f0543, 128); in wg_allowedips_selftest()
627 else if (cidr == 128 && family == AF_INET6 && in wg_allowedips_selftest()