Lines Matching refs:lease
497 if (!client->lease) in sd_dhcp6_client_get_lease()
501 *ret = client->lease; in sd_dhcp6_client_get_lease()
546 client->lease = sd_dhcp6_lease_unref(client->lease); in client_stop()
731 client->lease->serverid_len, in dhcp6_client_send_message()
732 client->lease->serverid); in dhcp6_client_send_message()
739 assert(client->lease); in dhcp6_client_send_message()
742 … client->lease->ia_na, client->lease->ia_pd); in dhcp6_client_send_message()
815 if (client->retransmit_count > 0 && client->lease) { in client_timeout_resend()
992 assert(client->lease); in client_enter_bound_state()
1002 r = dhcp6_lease_get_lifetime(client->lease, &lifetime_t1, &lifetime_t2, &lifetime_valid); in client_enter_bound_state()
1083 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL; in client_process_information()
1092 r = dhcp6_lease_new_from_message(client, message, len, timestamp, server_address, &lease); in client_process_information()
1098 sd_dhcp6_lease_unref(client->lease); in client_process_information()
1099 client->lease = TAKE_PTR(lease); in client_process_information()
1117 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL; in client_process_reply()
1126 r = dhcp6_lease_new_from_message(client, message, len, timestamp, server_address, &lease); in client_process_reply()
1132 sd_dhcp6_lease_unref(client->lease); in client_process_reply()
1133 client->lease = TAKE_PTR(lease); in client_process_reply()
1145 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL; in client_process_advertise_or_rapid_commit_reply()
1155 r = dhcp6_lease_new_from_message(client, message, len, timestamp, server_address, &lease); in client_process_advertise_or_rapid_commit_reply()
1163 r = dhcp6_lease_get_rapid_commit(lease, &rapid_commit); in client_process_advertise_or_rapid_commit_reply()
1173 sd_dhcp6_lease_unref(client->lease); in client_process_advertise_or_rapid_commit_reply()
1174 client->lease = TAKE_PTR(lease); in client_process_advertise_or_rapid_commit_reply()
1179 r = dhcp6_lease_get_preference(lease, &pref_advertise); in client_process_advertise_or_rapid_commit_reply()
1183 if (client->lease) { in client_process_advertise_or_rapid_commit_reply()
1184 r = dhcp6_lease_get_preference(client->lease, &pref_lease); in client_process_advertise_or_rapid_commit_reply()
1191 if (!client->lease || pref_advertise > pref_lease) { in client_process_advertise_or_rapid_commit_reply()
1193 sd_dhcp6_lease_unref(client->lease); in client_process_advertise_or_rapid_commit_reply()
1194 client->lease = TAKE_PTR(lease); in client_process_advertise_or_rapid_commit_reply()
1335 client->lease = sd_dhcp6_lease_unref(client->lease); in sd_dhcp6_client_start()
1431 sd_dhcp6_lease_unref(client->lease); in dhcp6_client_free()