Lines Matching refs:sourcemask
362 addrlen_t sourcemask, addrlen_t scope, void *elem, time_t ttl, in addrtree_insert() argument
376 if (scope < sourcemask) sourcemask = scope; in addrtree_insert()
380 log_assert(depth <= sourcemask); in addrtree_insert()
382 if (depth == sourcemask) { in addrtree_insert()
392 index = getbit(addr, sourcemask, depth); in addrtree_insert()
406 if (!edge_create(newnode, addr, sourcemask, node, in addrtree_insert()
419 common = bits_common(edge->str, edge->len, addr, sourcemask, in addrtree_insert()
448 if (common == sourcemask) { in addrtree_insert()
458 if (common != sourcemask) { in addrtree_insert()
462 if (!edge_create(newnode, addr, sourcemask, node, in addrtree_insert()
479 addrlen_t sourcemask, time_t now) in addrtree_find() argument
488 log_assert(depth <= sourcemask); in addrtree_find()
491 !(sourcemask != 0 && node->only_match_scope_zero)) { in addrtree_find()
495 (node->scope > sourcemask && in addrtree_find()
496 depth == sourcemask)) { in addrtree_find()
505 if (depth == sourcemask) in addrtree_find()
508 edge = node->edge[getbit(addr, sourcemask, depth)]; in addrtree_find()
511 if (edge->len > sourcemask ) in addrtree_find()
513 if (!issub(edge->str, edge->len, addr, sourcemask, depth)) in addrtree_find()