Lines Matching refs:now
51 size_t zonelen, int wr, time_t now, struct infra_key** k)
58 if(d->ttl < now) {
68 uint8_t* zone, size_t zonelen, time_t *now, int keep_probing,
82 *now += cfg->host_ttl + 10;
84 *now, &vs, &edns_lame, &to) );
89 LDNS_RR_TYPE_A, -1, to, *now) );
91 *now, &vs, &edns_lame, &to) );
97 unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, *now, &k)) );
102 cfg->host_ttl = cfg->host_ttl + *now < probedelay
107 *now = probedelay;
109 LDNS_RR_TYPE_A, &lame, &dnsseclame, &reclame, &to, *now) );
123 time_t now = 0;
137 unit_assert( infra_host(slab, &one, onelen, zone, zonelen, now,
142 unit_assert( infra_rtt_update(slab, &one, onelen, zone, zonelen, LDNS_RR_TYPE_A, -1, init, now) );
144 now, &vs, &edns_lame, &to) );
148 unit_assert( infra_edns_update(slab, &one, onelen, zone, zonelen, -1, now) );
150 now, &vs, &edns_lame, &to) );
154 now += cfg->host_ttl + 10;
156 now, &vs, &edns_lame, &to) );
161 zone, zonelen, now, 0, 0, LDNS_RR_TYPE_A) );
162 unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, now, &k)) );
163 unit_assert( d->ttl == now+cfg->host_ttl );
171 zone, zonelen, now, 0, 0, LDNS_RR_TYPE_AAAA) );
172 unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, now, &k)) );
178 now += cfg->host_ttl + 10;
180 now, &vs, &edns_lame, &to) );
183 unit_assert( infra_edns_update(slab, &one, onelen, zone, zonelen, 0, now) );
185 now, &vs, &edns_lame, &to) );
188 unit_assert( infra_edns_update(slab, &one, onelen, zone, zonelen, -1, now) );
190 now, &vs, &edns_lame, &to) );
194 test_keep_probing(slab, cfg, one, onelen, zone, zonelen, &now, 0, default_max_rtt);
197 test_keep_probing(slab, cfg, one, onelen, zone, zonelen, &now, 1, default_max_rtt);
200 test_keep_probing(slab, cfg, one, onelen, zone, zonelen, &now, 0, 3000);
203 test_keep_probing(slab, cfg, one, onelen, zone, zonelen, &now, 1, 3000);