Lines Matching refs:ttl
1226 int ttl; in get_dns_ttl() local
1237 ttl = *(nssuint_t *)((void *)((char *)pbuf + phdr->ext_off)); in get_dns_ttl()
1240 (me, "dns ttl is %d seconds\n", ttl); in get_dns_ttl()
1242 return (ttl); in get_dns_ttl()
1566 int ttl; in lookup_int() local
1604 ttl = get_dns_ttl(largs->buffer, dbname); in lookup_int()
1606 if (ttl < 0 || ttl > cfg.pos_ttl) in lookup_int()
1607 ttl = cfg.pos_ttl; in lookup_int()
1608 this_stats->timestamp = time(NULL) + ttl; in lookup_int()
2187 uint_t ttl, extra_sleep, total_sleep, intervals; in reaper() local
2198 ttl = ctx->cfg.pos_ttl; in reaper()
2206 if (ttl < 60) in reaper()
2207 ttl = 60; in reaper()
2209 (me, "%s: sleep %d\n", ctx->dbname, ttl); in reaper()
2210 (void) sleep(ttl); in reaper()
2214 if (ttl < 32) ttl = 32; in reaper()
2215 if (ttl > (1<<28)) ttl = 1<<28; in reaper()
2223 if (nsc_entries <= ttl) { in reaper()
2225 seconds_per_interval = ttl / intervals; in reaper()
2228 intervals = (ttl >> 5) + 1; in reaper()
2243 extra_sleep = 1 + ttl - total_sleep; in reaper()