if (this->other)
{
+ DBG1(DBG_JOB, "using other host %H", this->other);
ike_sa->set_other_host(ike_sa, this->other->clone(this->other));
}
this->my_host = connection->get_my_host(connection);
this->my_host = this->my_host->clone(this->my_host);
}
+ DBG1(DBG_IKE, "this->other: %H", this->other_host);
+ DBG1(DBG_IKE, "connections other: %H", connection->get_other_host(connection));
if (this->other_host->is_anyaddr(this->other_host))
{
this->other_host->destroy(this->other_host);
this->other_host = connection->get_other_host(connection);
this->other_host = this->other_host->clone(this->other_host);
}
- this->retrans_sequences = connection->get_retrans_seq(connection);
- this->dpd_delay = connection->get_dpd_delay(connection);
-
if (this->other_host->is_anyaddr(this->other_host))
{
SIG(IKE_UP_START, "establishing new IKE_SA for CHILD_SA");
return DESTROY_ME;
}
+ this->retrans_sequences = connection->get_retrans_seq(connection);
+ this->dpd_delay = connection->get_dpd_delay(connection);
+
this->message_id_out = 1;
ike_sa_init = ike_sa_init_create(&this->public);
ike_sa_init->set_config(ike_sa_init, connection, policy);
return SUCCESS;
}
- me = this->connection->get_my_host(this->connection);
- other = this->connection->get_other_host(this->connection);
+ me = this->ike_sa->get_my_host(this->ike_sa);
+ other = this->ike_sa->get_other_host(this->ike_sa);
/* we already set up the IDs. Mine is already fully qualified, other
* will be updated in the ike_auth transaction */
/* N(NAT_DETECTION_SOURCE_IP)+
* we include only one notify if our address is defined, but all
* possible if not */
- host = this->connection->get_my_host(this->connection);
+ host = this->ike_sa->get_my_host(this->ike_sa);
if (host->is_anyaddr(host))
{
/* TODO: we could get the src address from netlink */
/* allow setting of next transaction in other functions */
this->next = next;
- me = this->connection->get_my_host(this->connection);
- other = this->connection->get_other_host(this->connection);
+ me = this->ike_sa->get_my_host(this->ike_sa);
+ other = this->ike_sa->get_other_host(this->ike_sa);
/* check if SPI has been updated, but apply only if all goes ok later */
responder_spi = response->get_responder_spi(response);