if (r < 0)
return r;
- /* We currently ignore:
- The client SHOULD wait a random time between one and ten seconds to
- desynchronize the use of DHCP at startup.
- */
r = dhcp_client_send_raw(client, discover, sizeof(DHCPPacket) + optoffset);
if (r < 0)
return r;
if (client->last_addr && !client->anonymize)
client_set_state(client, DHCP_STATE_INIT_REBOOT);
+ /* We currently ignore:
+ * The client SHOULD wait a random time between one and ten seconds to desynchronize the use of
+ * DHCP at startup. */
r = client_start(client);
if (r >= 0)
log_dhcp_client(client, "STARTED on ifindex %i", client->ifindex);