summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-link.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-07 19:48:46 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-08 10:34:08 +0100
commit214db8eb5d109cade4f4cb6046dc248f8e23bf27 (patch)
treeafec75f862258b77a81bc4cc77fe337e49bb0df0 /src/resolve/resolved-link.h
parentsd-network: introduce sd_network_link_get_stat() (diff)
downloadsystemd-214db8eb5d109cade4f4cb6046dc248f8e23bf27.tar.xz
systemd-214db8eb5d109cade4f4cb6046dc248f8e23bf27.zip
resolve: do not re-read settings from networkd if link state file is unmodified
If many interface creation/deletion occurs continuously, then resolved becomes easily busy. Let's slightly optimize the event triggered by sd-network.
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r--src/resolve/resolved-link.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h
index 3c364866f6..f65718ce31 100644
--- a/src/resolve/resolved-link.h
+++ b/src/resolve/resolved-link.h
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
+#include <sys/stat.h>
+
#include "sd-netlink.h"
#include "in-addr-util.h"
@@ -65,6 +67,7 @@ struct Link {
DnsScope *mdns_ipv4_scope;
DnsScope *mdns_ipv6_scope;
+ struct stat networkd_state_file_stat;
bool is_managed;
char *ifname;