Lines Matching refs:ttl
1252 int ttl; in get_dns_ttl() local
1263 ttl = *(nssuint_t *)((void *)((char *)pbuf + phdr->ext_off)); in get_dns_ttl()
1266 (me, "dns ttl is %d seconds\n", ttl); in get_dns_ttl()
1268 return (ttl); in get_dns_ttl()
1592 int ttl; in lookup_int() local
1630 ttl = get_dns_ttl(largs->buffer, dbname); in lookup_int()
1632 if (ttl < 0 || ttl > cfg.pos_ttl) in lookup_int()
1633 ttl = cfg.pos_ttl; in lookup_int()
1634 this_stats->timestamp = time(NULL) + ttl; in lookup_int()
2226 uint_t ttl, extra_sleep, total_sleep, intervals; in reaper() local
2239 ttl = ctx->cfg.pos_ttl; in reaper()
2247 if (ttl < 60) in reaper()
2248 ttl = 60; in reaper()
2250 (me, "%s: sleep %d\n", ctx->dbname, ttl); in reaper()
2251 (void) sleep(ttl); in reaper()
2255 if (ttl < 32) ttl = 32; in reaper()
2256 if (ttl > (1<<28)) ttl = 1<<28; in reaper()
2264 if (nsc_entries <= ttl) { in reaper()
2266 seconds_per_interval = ttl / intervals; in reaper()
2269 intervals = (ttl >> 5) + 1; in reaper()
2284 extra_sleep = 1 + ttl - total_sleep; in reaper()