Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
opensips/opensips.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/opensips/opensips.spec Sun Jan 27 20:22:45 2013 +0100 1.2 +++ b/opensips/opensips.spec Mon Jan 28 17:37:18 2013 +0100 1.3 @@ -387,16 +387,14 @@ 1.4 modules/sipcapture/sipcapture.h \ 1.5 modules/lua/sipwatch.h \ 1.6 modules/lua/crc32.h 1.7 + # redundant since OpenSIPS commit #9666 (ab 1.9.*) 1.8 %{l_shtool} subst \ 1.9 - -e 's;\(LM_ERR("\)\(failed to retrieve SO_ERROR (%d) %s\\n",\);\1addr (%s) port (%d), \2 inet_ntoa(((struct sockaddr_in *)servaddr)->sin_addr), ntohs(((struct sockaddr_in *)servaddr)->sin_port),;' \ 1.10 + -e 's/\(LM_ERR("\)\(failed to retrieve SO_ERROR (%d) %s\\n",\)/char erraddrstr[INET6_ADDRSTRLEN]; \1addr (%s) port (%d), \2 servaddr->sa_family == AF_INET ? inet_ntoa(((struct sockaddr_in *)servaddr)->sin_addr) : inet_ntop(AF_INET6, \&((struct sockaddr_in6 *)servaddr)->sin6_addr, erraddrstr, sizeof(erraddrstr)), servaddr->sa_family == AF_INET ? ntohs(((struct sockaddr_in *)servaddr)->sin_port) : ntohs(((struct sockaddr_in6 *)servaddr)->sin6_port),/' \ 1.11 tcp_main.c 1.12 %{l_shtool} subst \ 1.13 -e 's;\(sock_info->socket = socket(AF2PF(addr->s.sa_family), SOCK_SEQPACKET,\) 0;\1 IPPROTO_SCTP;' \ 1.14 sctp_server.c 1.15 %{l_shtool} subst \ 1.16 - -e 's;\(#define MAX_SSL_RETRIES\) 32;\1 1024;' \ 1.17 - tls/tls_server.c 1.18 - %{l_shtool} subst \ 1.19 -e 's;LM_ERR(\("unable to load\);LM_WARN(\1;g' \ 1.20 tls/tls_init.c 1.21 %{l_shtool} subst \