Lines Matching defs:expiry
381 uint64_t timestamp, expiry;
427 * as the packet expiry time */
430 expiry = timestamp + (uint64_t)qstate->return_msg->rep->ttl;
432 expiry = htobe64(expiry);
434 if(oldlim + sizeof(timestamp)+sizeof(expiry) >=
437 sldns_buffer_set_limit(buf, oldlim + sizeof(timestamp)+sizeof(expiry));
439 sldns_buffer_write_at(buf, oldlim+sizeof(timestamp), &expiry,
440 sizeof(expiry));
445 /** check expiry, return true if matches OK */
449 uint64_t expiry;
450 /* the expiry time is the last bytes of the buffer */
451 if(sldns_buffer_limit(buf) < sizeof(expiry))
453 sldns_buffer_read_at(buf, sldns_buffer_limit(buf)-sizeof(expiry),
454 &expiry, sizeof(expiry));
455 expiry = be64toh(expiry);
461 if((time_t)expiry < *qstate->env->now &&
464 *qstate->env->now - (time_t)expiry > SERVE_EXPIRED_TTL)))
543 uint64_t timestamp, expiry;
546 if(lim < LDNS_HEADER_SIZE+sizeof(timestamp)+sizeof(expiry))
549 /* remove timestamp and expiry from end */
550 sldns_buffer_read_at(buf, lim-sizeof(expiry), &expiry, sizeof(expiry));
551 sldns_buffer_read_at(buf, lim-sizeof(expiry)-sizeof(timestamp),
553 expiry = be64toh(expiry);
564 sldns_buffer_set_limit(buf, lim - sizeof(expiry)-sizeof(timestamp));
627 * refetch will be scheduled. The comparison between 'expiry' and
632 (adjust == -1 || (time_t)expiry < *qstate->env->now)) {
656 /* check expiry date and check if query-data matches */