Lines Matching refs:ttl
715 uint32_t ttl, rec_result = rr.ttl; in answer_getNegativeTTL() local
732 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
733 if (ttl < rec_result) { in answer_getNegativeTTL()
734 rec_result = ttl; in answer_getNegativeTTL()
760 uint32_t result, ttl; in answer_getTTL() local
774 ttl = rr.ttl; in answer_getTTL()
775 if (n == 0 || ttl < result) { in answer_getTTL()
776 result = ttl; in answer_getTTL()
1295 uint32_t ttl; in resolv_cache_add() local
1337 ttl = answer_getTTL(answer, answerlen); in resolv_cache_add()
1338 if (ttl > 0) { in resolv_cache_add()
1341 e->expires = ttl + _time_now(); in resolv_cache_add()