summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-ndisc.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-04-15 09:16:13 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-19 03:23:00 +0200
commit9646ffe2cacb5dccf1fcb8bcc54bf0d315bd0000 (patch)
tree8cb84a36d2c02e1067f7adf45d7e2bd1a9bc2739 /src/network/networkd-ndisc.c
parentnetwork: introduce link_get_use_domains() (diff)
downloadsystemd-9646ffe2cacb5dccf1fcb8bcc54bf0d315bd0000.tar.xz
systemd-9646ffe2cacb5dccf1fcb8bcc54bf0d315bd0000.zip
network: introduce link_get_use_dns()
No functional change, just refactoring.
Diffstat (limited to 'src/network/networkd-ndisc.c')
-rw-r--r--src/network/networkd-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
index c7d7fc7efc..92ff7c71f3 100644
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -1409,7 +1409,7 @@ static int ndisc_router_process_rdnss(Link *link, sd_ndisc_router *rt) {
assert(link->network);
assert(rt);
- if (!link->network->ndisc_use_dns)
+ if (!link_get_use_dns(link, NETWORK_CONFIG_SOURCE_NDISC))
return 0;
r = sd_ndisc_router_get_sender_address(rt, &router);