Clarified error message if enabling UDP decapsulation fails

This commit is contained in:
Tobias Brunner
2012-09-27 10:49:17 +02:00
parent bfd2cc1cd7
commit 45178362c8
2 changed files with 4 additions and 2 deletions
@@ -540,7 +540,8 @@ static int open_socket(private_socket_default_socket_t *this,
!hydra->kernel_interface->enable_udp_decap(hydra->kernel_interface,
skt, family, this->natt))
{
DBG1(DBG_NET, "enabling UDP decapsulation failed");
DBG1(DBG_NET, "enabling UDP decapsulation for %s on port %d failed",
family == AF_INET ? "IPv4" : "IPv6", this->natt);
}
return skt;
@@ -406,7 +406,8 @@ static int open_socket(private_socket_dynamic_socket_t *this,
if (!hydra->kernel_interface->enable_udp_decap(hydra->kernel_interface,
fd, family, port))
{
DBG1(DBG_NET, "enabling UDP decapsulation failed");
DBG1(DBG_NET, "enabling UDP decapsulation for %s on port %d failed",
family == AF_INET ? "IPv4" : "IPv6", port);
}
return fd;