summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-routing-policy-rule.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-14 02:42:51 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-06-15 14:56:42 +0200
commitbafa9641446852f7fa15ca12d08a223d345c78ea (patch)
tree5fb2f36e09a048b61f341ced732ed1a78ac26378 /src/network/networkd-routing-policy-rule.c
parentMerge pull request #12796 from yuwata/test-network-use-wait-online (diff)
downloadsystemd-bafa9641446852f7fa15ca12d08a223d345c78ea.tar.xz
systemd-bafa9641446852f7fa15ca12d08a223d345c78ea.zip
network: read link specific sysctl value
This introduce link_sysctl_ipv6_enabled() and replaces manager_sysctl_ipv6_enabled() with it.
Diffstat (limited to 'src/network/networkd-routing-policy-rule.c')
-rw-r--r--src/network/networkd-routing-policy-rule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-routing-policy-rule.c b/src/network/networkd-routing-policy-rule.c
index be7f2f225b..e4dca83071 100644
--- a/src/network/networkd-routing-policy-rule.c
+++ b/src/network/networkd-routing-policy-rule.c
@@ -484,7 +484,7 @@ int routing_policy_rule_configure(RoutingPolicyRule *rule, Link *link, link_netl
assert(link->manager);
assert(link->manager->rtnl);
- if (rule->family == AF_INET6 && manager_sysctl_ipv6_enabled(link->manager) == 0) {
+ if (rule->family == AF_INET6 && link_sysctl_ipv6_enabled(link) == 0) {
log_link_warning(link, "An IPv6 routing policy rule is requested, but IPv6 is disabled by sysctl, ignoring.");
return 0;
}