Lines Matching refs:ans
497 struct crec *ans; in cache_find_by_name() local
500 ans = crecp->next; in cache_find_by_name()
505 struct crec *next, **up, **insert = NULL, **chainp = &ans; in cache_find_by_name()
570 if (ans && in cache_find_by_name()
571 (ans->flags & F_FORWARD) && in cache_find_by_name()
572 (ans->flags & prot) && in cache_find_by_name()
573 hostname_isequal(cache_get_name(ans), name)) in cache_find_by_name()
574 return ans; in cache_find_by_name()
582 struct crec *ans; in cache_find_by_addr() local
590 ans = crecp->next; in cache_find_by_addr()
598 struct crec **up, **chainp = &ans; in cache_find_by_addr()
635 if (ans && in cache_find_by_addr()
636 (ans->flags & F_REVERSE) && in cache_find_by_addr()
637 (ans->flags & prot) && in cache_find_by_addr()
638 memcmp(&ans->addr.addr, addr, addrlen) == 0) in cache_find_by_addr()
639 return ans; in cache_find_by_addr()