Lines Matching refs:client_update
104 static void prepare_update(adv_host_t *host, client_update_t *client_update);
3107 prepare_update(adv_host_t *host, client_update_t *client_update)
3173 for (addr = client_update->host->addrs; addr != NULL; addr = addr->next) {
3184 for (addr = client_update->host->addrs; addr; addr = addr->next) {
3321 for (delete_t *dp = client_update->removes; dp; dp = dp->next) {
3352 for (instance = client_update->instances; instance; instance = instance->next) {
3364 for (instance = client_update->instances; instance != NULL; instance = instance->next) {
3378 if (client_update != NULL && client_update->connection != NULL) {
3379 const struct sockaddr *server_addr = connection_get_local_address(client_update->message);
3441 update->client = client_update;
3448 update->host_lease = client_update->host_lease;
3449 update->key_lease = client_update->key_lease;
3464 if (client_update != NULL) {
3465 srp_parse_client_updates_free(client_update);
3466 client_update = NULL;
3516 srp_update_start(client_update_t *client_update)
3518 dns_host_description_t *new_host = client_update->host;
3520 srp_server_t *server_state = client_update->server_state;
3524 srpl_connection_t *srpl_connection = client_update->srpl_connection;
3525 message_t *raw_message = client_update->message;
3526 comm_t *connection = client_update->connection;
3530 for (client_update_t *update = client_update; update != NULL; update = update->next) {
3538 if (update == client_update) {
3562 while (client_update != NULL && replay) {
3564 if (host->message != NULL && host->message->wire.id == client_update->message->wire.id) {
3571 instance->message->wire.id == client_update->message->wire.id)
3580 client_update_t *skip_update = client_update;
3581 client_update = client_update->next;
3591 if (client_update != NULL) {
3592 new_host = client_update->host;
3607 if (client_update == NULL) {
3613 service_instance_t *instances = client_update->instances;
3614 delete_t *removes = client_update->removes;
3622 const bool remove = client_update->host_lease == 0;
3623 const char *updatestr = client_update->host_lease == 0 ? "remove" : "update";
3794 if (host->remove_received_time > client_update->message->received_time) {
3947 srp_parse_client_updates_free(client_update);
3995 client_update->host_lease = raw_message->lease;
3996 client_update->key_lease = raw_message->key_lease;
3998 if (client_update->host_lease < server_state->max_lease_time) {
3999 if (client_update->host_lease < server_state->min_lease_time) {
4001 client_update->host_lease = server_state->min_lease_time;
4003 INFO("basing lease time on client_update->host_lease: %d", client_update->host_lease);
4004 // client_update->host_lease = client_update->host_lease;
4007 client_update->host_lease = server_state->max_lease_time;
4010 if (client_update->key_lease < server_state->key_max_lease_time) {
4011 if (client_update->key_lease < server_state->key_min_lease_time) {
4012 client_update->key_lease = server_state->key_min_lease_time;
4014 // client_update->key_lease = client_update->key_lease;
4017 client_update->key_lease = server_state->key_max_lease_time;
4029 prepare_update(host, client_update);