]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/sd-ipv4ll.c
network: return 1 on start and 0 if ipv4ll is already started
[thirdparty/systemd.git] / src / libsystemd-network / sd-ipv4ll.c
index aa1ece41d25cb5e7b9fdc332ee1c018aa712cb6b..4f4d9ebe87719add28630b590dcc4057f4d61349 100644 (file)
@@ -252,12 +252,14 @@ static int ipv4ll_start_internal(sd_ipv4ll *ll, bool reset_generation) {
                 return r;
         }
 
-        return 0;
+        return 1;
 }
 
 int sd_ipv4ll_start(sd_ipv4ll *ll) {
         assert_return(ll, -EINVAL);
-        assert_return(sd_ipv4ll_is_running(ll) == 0, -EBUSY);
+
+        if (sd_ipv4ll_is_running(ll))
+                return 0;
 
         return ipv4ll_start_internal(ll, true);
 }