Lines Matching refs:type
73 cache_search (request_type type, const void *key, size_t len, in cache_search() argument
88 if (type == here->type && len == here->len in cache_search()
136 cache_add (int type, const void *key, size_t len, struct datahead *packet, in cache_add() argument
144 if (type == GETHOSTBYADDR || type == GETHOSTBYADDRv6) in cache_add()
145 str = inet_ntop (type == GETHOSTBYADDR ? AF_INET : AF_INET6, in cache_add()
151 str, serv2str[type], dbnames[table - dbs], in cache_add()
170 newp->type = type; in cache_add()
360 if (runp->type == GETHOSTBYADDR || runp->type == GETHOSTBYADDRv6) in prune_cache()
362 inet_ntop (runp->type == GETHOSTBYADDR ? AF_INET : AF_INET6, in prune_cache()
370 serv2str[runp->type], str, dh->timeout); in prune_cache()
411 assert (runp->type < LASTREQ in prune_cache()
412 && readdfcts[runp->type] != NULL); in prune_cache()
414 time_t timeout = readdfcts[runp->type] (table, runp, dh); in prune_cache()
522 if (runp->type == GETHOSTBYADDR || runp->type == GETHOSTBYADDRv6) in prune_cache()
524 inet_ntop (runp->type == GETHOSTBYADDR ? AF_INET : AF_INET6, in prune_cache()
531 dbg_log ("remove %s entry \"%s\"", serv2str[runp->type], str); in prune_cache()