]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-ipv4ll: allow to set MAC address without stopping sd-ipv4ll engine
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 20 Jun 2021 19:00:31 +0000 (04:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Jun 2021 15:49:02 +0000 (00:49 +0900)
src/libsystemd-network/sd-ipv4ll.c

index 8053afee938896e6a0ef22b398c6646fbc56d66c..58a7fcb567a5d320de3f3ab55ac57ac941979237 100644 (file)
@@ -137,7 +137,7 @@ int sd_ipv4ll_set_mac(sd_ipv4ll *ll, const struct ether_addr *addr) {
 
         assert_return(ll, -EINVAL);
         assert_return(addr, -EINVAL);
-        assert_return(sd_ipv4ll_is_running(ll) == 0, -EBUSY);
+        assert_return(!ether_addr_is_null(addr), -EINVAL);
 
         r = sd_ipv4acd_set_mac(ll->acd, addr);
         if (r < 0)