summaryrefslogtreecommitdiff
path: root/src/network/sd-network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/sd-network.c')
-rw-r--r--src/network/sd-network.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c
index a0f147e023..260ca470d1 100644
--- a/src/network/sd-network.c
+++ b/src/network/sd-network.c
@@ -114,6 +114,9 @@ _public_ int sd_network_get_llmnr(int ifindex, char **llmnr) {
assert_return(ifindex > 0, -EINVAL);
assert_return(llmnr, -EINVAL);
+ if (asprintf(&p, "/run/systemd/netif/links/%d", ifindex) < 0)
+ return -ENOMEM;
+
r = parse_env_file(p, NEWLINE, "LLMNR", &s, NULL);
if (r == -ENOENT)
return -ENODATA;