Searched refs:ad_cache (Results 1 – 1 of 1) sorted by relevance
209 struct address_cache *ad_cache, *cptr, *prevptr; in add_cache() local211 ad_cache = malloc(sizeof (struct address_cache)); in add_cache()212 if (!ad_cache) { in add_cache()215 ad_cache->ac_maxtime = time(NULL) + CACHE_TTL; in add_cache()216 ad_cache->ac_host = strdup(host); in add_cache()217 ad_cache->ac_netid = strdup(netid); in add_cache()218 ad_cache->ac_uaddr = uaddr ? strdup(uaddr) : NULL; in add_cache()219 ad_cache->ac_taddr = malloc(sizeof (struct netbuf)); in add_cache()220 if (!ad_cache->ac_host || !ad_cache->ac_netid || !ad_cache->ac_taddr || in add_cache()221 (uaddr && !ad_cache->ac_uaddr)) { in add_cache()[all …]