diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-28 13:46:26 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-12-16 14:20:49 +0100 |
commit | 5777c6130b2d0858df1fa9314e4e8c2441b7c1af (patch) | |
tree | a3fab7ff2e0ee7af562b14abb73686a54c26a5b9 /src/resolve/resolved-dns-packet.h | |
parent | 8bc63a0b1355a8362e50b449b2ae9979122a2521 (diff) | |
download | systemd-5777c6130b2d0858df1fa9314e4e8c2441b7c1af.tar.gz |
resolved: always take a timestamp when first seeing a packet
This is later useful if we want to adjust the TTLs of packets we want to
propagate to clients.
Diffstat (limited to 'src/resolve/resolved-dns-packet.h')
-rw-r--r-- | src/resolve/resolved-dns-packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index 0c804d6d2b..4dba96b3b8 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -71,6 +71,7 @@ struct DnsPacket { union in_addr_union sender, destination; uint16_t sender_port, destination_port; uint32_t ttl; + usec_t timestamp; /* CLOCK_BOOTTIME (or CLOCK_MONOTONIC if the former doesn't exist) */ /* For support of truncated packets */ DnsPacket *more; |