Lines Matching refs:timestamp
381 uint64_t timestamp, expiry; in prep_data() local
429 timestamp = (uint64_t)*qstate->env->now; in prep_data()
430 expiry = timestamp + (uint64_t)qstate->return_msg->rep->ttl; in prep_data()
431 timestamp = htobe64(timestamp); in prep_data()
434 if(oldlim + sizeof(timestamp)+sizeof(expiry) >= in prep_data()
437 sldns_buffer_set_limit(buf, oldlim + sizeof(timestamp)+sizeof(expiry)); in prep_data()
438 sldns_buffer_write_at(buf, oldlim, ×tamp, sizeof(timestamp)); in prep_data()
439 sldns_buffer_write_at(buf, oldlim+sizeof(timestamp), &expiry, in prep_data()
543 uint64_t timestamp, expiry; in parse_data() local
546 if(lim < LDNS_HEADER_SIZE+sizeof(timestamp)+sizeof(expiry)) in parse_data()
551 sldns_buffer_read_at(buf, lim-sizeof(expiry)-sizeof(timestamp), in parse_data()
552 ×tamp, sizeof(timestamp)); in parse_data()
554 timestamp = be64toh(timestamp); in parse_data()
564 sldns_buffer_set_limit(buf, lim - sizeof(expiry)-sizeof(timestamp)); in parse_data()
601 if(*qstate->env->now <= (time_t)timestamp) { in parse_data()
605 adjust = *qstate->env->now - (time_t)timestamp; in parse_data()