applied new changes from NATT team

DPD only done when no IPsec and IKE traffic processed
	minor changes here and there
This commit is contained in:
Martin Willi
2006-06-23 14:02:30 +00:00
parent 2891590b05
commit 2f89902d07
20 changed files with 358 additions and 226 deletions
+1
View File
@@ -147,6 +147,7 @@ interfaces_t *interfaces_create(u_int16_t port)
if (initialize(this) != SUCCESS)
{
destroy(this);
return NULL;
}
return &this->public;
+2 -2
View File
@@ -395,9 +395,9 @@ static status_t initialize(private_socket_t *this)
int type = UDP_ENCAP_ESPINUDP;
if (setsockopt(this->natt_fd, SOL_UDP, UDP_ENCAP, &type, sizeof(type)) < 0)
{
this->logger->log(this->logger, ERROR,
this->logger->log(this->logger, ERROR,
"unable to set UDP_ENCAP on natt send socket! NAT-T may fail! error: %s",
strerror(errno));
strerror(errno));
}
}