fixed mobike address update from and to NAT

This commit is contained in:
Martin Willi
2007-07-02 12:55:07 +00:00
parent c598ac6360
commit 3d928c9ffd
2 changed files with 20 additions and 34 deletions
+6 -1
View File
@@ -393,6 +393,11 @@ static void send_keepalive(private_ike_sa_t *this)
send_keepalive_job_t *job;
time_t last_out, now, diff;
if (!(this->conditions & COND_NAT_HERE))
{ /* disable keep alives if we are not NATed anymore */
return;
}
last_out = get_use_time(this, FALSE);
now = time(NULL);
@@ -410,8 +415,8 @@ static void send_keepalive(private_ike_sa_t *this)
data.ptr[0] = 0xFF;
data.len = 1;
packet->set_data(packet, data);
charon->sender->send(charon->sender, packet);
DBG1(DBG_IKE, "sending keep alive");
charon->sender->send(charon->sender, packet);
diff = 0;
}
job = send_keepalive_job_create(this->ike_sa_id);