}
if (new_me)
{
+ if (this->state == IKE_ESTABLISHED)
+ {
+ DBG1(DBG_IKE, "local endpoint changed from %#H to %#H",
+ this->my_host, new_me);
+ }
+ else
+ {
+ DBG2(DBG_IKE, "local endpoint changed from %#H to %#H",
+ this->my_host, new_me);
+ }
set_my_host(this, new_me->clone(new_me));
}
if (new_other)
{
+ if (this->state == IKE_ESTABLISHED)
+ {
+ DBG1(DBG_IKE, "remote endpoint changed from %#H to %#H",
+ this->other_host, new_other);
+ }
+ else
+ {
+ DBG2(DBG_IKE, "remote endpoint changed from %#H to %#H",
+ this->other_host, new_other);
+ }
set_other_host(this, new_other->clone(new_other));
}
other_old = this->ike_sa->get_other_host(this->ike_sa);
if (!other->equals(other, other_old))
{
- DBG1(DBG_IKE, "remote address changed from %H to %H", other_old,
- other);
other_new = other;
/* our address might have changed too if the responder used
* a different address from our list to reach us */