diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-01-10 17:22:37 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-01-11 12:07:28 +0100 |
commit | 5c3fa98db68fbcf1f559b16238a5aba429a56448 (patch) | |
tree | 2c981f25abac971657f88b70b2bc25b2ee09b704 /src/resolve/resolved-etc-hosts.c | |
parent | basic/socket-util: indent for clarity (diff) | |
download | systemd-5c3fa98db68fbcf1f559b16238a5aba429a56448.tar.xz systemd-5c3fa98db68fbcf1f559b16238a5aba429a56448.zip |
util-lib: move things that parse ifnames to shared/
In subsequent commits, calls to if_nametoindex() will be replaced by a wrapper
that falls back to alternative name resolution over netlink. netlink support
requires libsystemd (for sd-netlink), and we don't want to add any functions
that require netlink in basic/. So stuff that calls if_nametoindex() for user
supplied interface names, and everything that depends on that, needs to be
moved.
Diffstat (limited to 'src/resolve/resolved-etc-hosts.c')
-rw-r--r-- | src/resolve/resolved-etc-hosts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-etc-hosts.c b/src/resolve/resolved-etc-hosts.c index 6a23d2bb8e..e6bf20db54 100644 --- a/src/resolve/resolved-etc-hosts.c +++ b/src/resolve/resolved-etc-hosts.c @@ -9,6 +9,7 @@ #include "hostname-util.h" #include "resolved-dns-synthesize.h" #include "resolved-etc-hosts.h" +#include "socket-netlink.h" #include "string-util.h" #include "strv.h" #include "time-util.h" |