
vpnc at unix-ag
Dec 9, 2007, 11:13 AM
Post #1 of 1
(241 views)
Permalink
|
|
svn commit: vpnc r274 - /trunk/vpnc.c
|
|
Author: Joerg Mayer Date: Sun Dec 9 20:13:48 2007 New Revision: 274 Log: Add some hints in case ESP or the ISAKMP source port aren't available. Modified: trunk/vpnc.c Modified: trunk/vpnc.c ============================================================================== --- trunk/vpnc.c (original) +++ trunk/vpnc.c Sun Dec 9 20:13:48 2007 @@ -204,7 +204,7 @@ name.sin_addr = s->opt_src_ip; name.sin_port = htons(src_port); if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0) - error(1, errno, "binding to %s:%d", inet_ntoa(s->opt_src_ip), src_port); + error(1, errno, "Error binding to source port. Try '--local-port 0'\nFailed to bind to %s:%d", inet_ntoa(s->opt_src_ip), src_port); /* connect the socket */ name.sin_family = AF_INET; @@ -2707,7 +2707,7 @@ s->esp_fd = socket(PF_INET, SOCK_RAW, IPPROTO_ESP); if (s->esp_fd == -1) { close_tunnel(); - error(1, errno, "socket(PF_INET, SOCK_RAW, IPPROTO_ESP)"); + error(1, errno, "Couldn't open socket of ESP. Maybe something registered ESP already.\nPlease try '--natt-mode force-natt' or disable whatever is using ESP.\nsocket(PF_INET, SOCK_RAW, IPPROTO_ESP)"); } #ifdef IP_HDRINCL if (setsockopt(s->esp_fd, IPPROTO_IP, IP_HDRINCL, &hincl, sizeof(hincl)) == -1) { _______________________________________________ vpnc-devel mailing list vpnc-devel[at]unix-ag.uni-kl.de https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|