Clarified error message if enabling UDP decapsulation fails
[strongswan.git] / src / libcharon / plugins / socket_default / socket_default_socket.c
index 8ab5a8c..51432c9 100644 (file)
@@ -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;