Lines Matching refs:expiry
383 uint64_t timestamp, expiry;
429 * as the packet expiry time */
432 expiry = timestamp + (uint64_t)qstate->return_msg->rep->ttl;
434 expiry = htobe64(expiry);
436 if(oldlim + sizeof(timestamp)+sizeof(expiry) >=
439 sldns_buffer_set_limit(buf, oldlim + sizeof(timestamp)+sizeof(expiry));
441 sldns_buffer_write_at(buf, oldlim+sizeof(timestamp), &expiry,
442 sizeof(expiry));
447 /** check expiry, return true if matches OK */
451 uint64_t expiry;
452 /* the expiry time is the last bytes of the buffer */
453 if(sldns_buffer_limit(buf) < sizeof(expiry))
455 sldns_buffer_read_at(buf, sldns_buffer_limit(buf)-sizeof(expiry),
456 &expiry, sizeof(expiry));
457 expiry = be64toh(expiry);
463 if((time_t)expiry < *qstate->env->now &&
466 *qstate->env->now - (time_t)expiry > SERVE_EXPIRED_TTL)))
545 uint64_t timestamp, expiry;
548 if(lim < LDNS_HEADER_SIZE+sizeof(timestamp)+sizeof(expiry))
551 /* remove timestamp and expiry from end */
552 sldns_buffer_read_at(buf, lim-sizeof(expiry), &expiry, sizeof(expiry));
553 sldns_buffer_read_at(buf, lim-sizeof(expiry)-sizeof(timestamp),
555 expiry = be64toh(expiry);
566 sldns_buffer_set_limit(buf, lim - sizeof(expiry)-sizeof(timestamp));
632 * refetch will be scheduled. The comparison between 'expiry' and
637 (adjust == -1 || (time_t)expiry < *qstate->env->now)) {
661 /* check expiry date and check if query-data matches */