summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-10-28 13:46:26 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-16 14:20:49 +0100
commit5777c6130b2d0858df1fa9314e4e8c2441b7c1af (patch)
treea3fab7ff2e0ee7af562b14abb73686a54c26a5b9 /src/resolve/resolved-manager.c
parent8bc63a0b1355a8362e50b449b2ae9979122a2521 (diff)
downloadsystemd-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-manager.c')
-rw-r--r--src/resolve/resolved-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
index 81d043a3fa..cc68484169 100644
--- a/src/resolve/resolved-manager.c
+++ b/src/resolve/resolved-manager.c
@@ -854,6 +854,8 @@ int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) {
} else
return -EAFNOSUPPORT;
+ p->timestamp = now(clock_boottime_or_monotonic());
+
CMSG_FOREACH(cmsg, &mh) {
if (cmsg->cmsg_level == IPPROTO_IPV6) {