Lines Matching refs:prefixlen
18 .prefixlen = 8, \
25 .prefixlen = 128, \
33 .prefixlen = 16, \
41 .prefixlen = 64, \
48 .prefixlen = 4, \
55 .prefixlen = 8, \
63 siphash24_compress(&a->prefixlen, sizeof(a->prefixlen), state); in in_addr_prefix_hash_func()
77 r = CMP(x->prefixlen, y->prefixlen); in in_addr_prefix_compare_func()
98 (void) in_addr_mask(copy->family, ©->address, copy->prefixlen); in in_addr_prefix_add()
113 assert(p->prefixlen <= 32); in in_addr_prefixes_reduce()
114 if (p->prefixlen == 0) in in_addr_prefixes_reduce()
117 ipv4_prefixlen_bits |= UINT32_C(1) << (p->prefixlen - 1); in in_addr_prefixes_reduce()
120 assert(p->prefixlen <= 128); in in_addr_prefixes_reduce()
121 if (p->prefixlen == 0) in in_addr_prefixes_reduce()
124 ipv6_prefixlen_bits[(p->prefixlen - 1) / sizeof(uint64_t)] |= in in_addr_prefixes_reduce()
125 UINT64_C(1) << ((p->prefixlen - 1) % sizeof(uint64_t)); in in_addr_prefixes_reduce()
147 if (p->prefixlen == 0) in in_addr_prefixes_reduce()
171 if (prefixlens[i] >= p->prefixlen) in in_addr_prefixes_reduce()
175 tmp.prefixlen = prefixlens[i]; in in_addr_prefixes_reduce()
176 (void) in_addr_mask(tmp.family, &tmp.address, tmp.prefixlen); in in_addr_prefixes_reduce()
309 … r = in_addr_prefix_from_string_auto(word, &a.family, &a.address, &a.prefixlen); in config_parse_in_addr_prefixes()
312 … r = in_addr_prefix_from_string(word, a.family, &a.address, &a.prefixlen); in config_parse_in_addr_prefixes()