userland support to process notifies for new NAT mappings detected in UDP encapsulation

This commit is contained in:
Martin Willi
2008-10-07 07:55:28 +00:00
parent 41b1cd6b87
commit aa9a300677
6 changed files with 237 additions and 12 deletions
+4 -6
View File
@@ -877,11 +877,6 @@ static void update_hosts(private_ike_sa_t *this, host_t *me, host_t *other)
{
bool update = FALSE;
if (supports_extension(this, EXT_MOBIKE))
{ /* if peer speaks mobike, address updates are explicit only */
return;
}
if (me == NULL)
{
me = this->my_host;
@@ -1461,7 +1456,10 @@ static status_t process_message(private_ike_sa_t *this, message_t *message)
if (this->state == IKE_CREATED || this->state == IKE_CONNECTING ||
message->get_exchange_type(message) != IKE_SA_INIT)
{
update_hosts(this, me, other);
if (!supports_extension(this, EXT_MOBIKE))
{ /* with MOBIKE, we do no implicit updates */
update_hosts(this, me, other);
}
this->time.inbound = time(NULL);
}
status = this->task_manager->process_message(this->task_manager, message);