From: Yu Watanabe Date: Sun, 20 Jun 2021 19:00:31 +0000 (+0900) Subject: sd-ipv4ll: allow to set MAC address without stopping sd-ipv4ll engine X-Git-Tag: v249-rc3~17^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e5aa34fc8b3cfef00b9019c3ca231358ba4b6f3;p=thirdparty%2Fsystemd.git sd-ipv4ll: allow to set MAC address without stopping sd-ipv4ll engine --- diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c index 8053afee938..58a7fcb567a 100644 --- a/src/libsystemd-network/sd-ipv4ll.c +++ b/src/libsystemd-network/sd-ipv4ll.c @@ -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)