Lines Matching +full:32 +full:k
32 if (bits == 32) { in print_node()
112 if (cidr % 32) in horrible_cidr_to_mask()
113 mask.all[cidr / 32] = (__force u32)htonl( in horrible_cidr_to_mask()
114 (0xFFFFFFFFUL << (32 - (cidr % 32))) & 0xFFFFFFFFUL); in horrible_cidr_to_mask()
256 unsigned int i, j, k, mutate_amount, cidr; in randomized_test() local
288 cidr = get_random_u32_inclusive(1, 32); in randomized_test()
303 mutate_amount = get_random_u32_below(32); in randomized_test()
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()
314 cidr = get_random_u32_inclusive(1, 32); 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()
378 print_tree(t.root4, 32); in randomized_test()
385 if (lookup(t.root4, 32, ip) != horrible_allowedips_lookup_v4(&h, (struct in_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, \
514 insert(4, b, 192, 168, 4, 4, 32); in wg_allowedips_selftest()
525 insert(6, g, 0x24046800, 0, 0, 0, 32); in wg_allowedips_selftest()
542 print_tree(t.root4, 32); in wg_allowedips_selftest()
577 insert(4, a, 1, 0, 0, 0, 32); in wg_allowedips_selftest()
578 insert(4, a, 64, 0, 0, 0, 32); in wg_allowedips_selftest()
579 insert(4, a, 128, 0, 0, 0, 32); in wg_allowedips_selftest()
580 insert(4, a, 192, 0, 0, 0, 32); in wg_allowedips_selftest()
581 insert(4, a, 255, 0, 0, 0, 32); in wg_allowedips_selftest()