]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: ignore error in writing proxy_ndp
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 Oct 2020 08:32:19 +0000 (17:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 Oct 2020 14:07:12 +0000 (23:07 +0900)
This partially reverts the commit fd773a11d8e2b01e9e6d234ca5693417c0101fca.

As, IPv6 may be disabled by kernel.

src/network/networkd-ipv6-proxy-ndp.c

index fb8464ff2fa7cdeeb3769700f73396fb98d46d10..ce193c0e5068b1d06add5c4f9c4d8add6639a3df 100644 (file)
@@ -84,7 +84,7 @@ static int ipv6_proxy_ndp_set(Link *link) {
 
         r = sysctl_write_ip_property_boolean(AF_INET6, link->ifname, "proxy_ndp", v);
         if (r < 0)
-                return log_link_warning_errno(link, r, "Cannot configure proxy NDP for the interface: %m");
+                return log_link_warning_errno(link, r, "Cannot configure proxy NDP for the interface, ignoring: %m");
 
         return v;
 }
@@ -100,7 +100,7 @@ int link_set_ipv6_proxy_ndp_addresses(Link *link) {
         /* enable or disable proxy_ndp itself depending on whether ipv6_proxy_ndp_addresses are set or not */
         r = ipv6_proxy_ndp_set(link);
         if (r <= 0)
-                return r;
+                return 0;
 
         SET_FOREACH(address, link->network->ipv6_proxy_ndp_addresses) {
                 r = ipv6_proxy_ndp_address_configure(link, address);