[Pkg-voip-commits] [pjproject] 06/14: asterisk/0003-r5403-pjsip_IPV6_V6ONLY

Bernhard Schmidt berni at moszumanska.debian.org
Thu Nov 10 09:32:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch master
in repository pjproject.

commit a050688586578ea1eb70b6c12f7066a7a604152b
Author: Bernhard Schmidt <berni at debian.org>
Date:   Thu Nov 10 09:46:04 2016 +0100

    asterisk/0003-r5403-pjsip_IPV6_V6ONLY
    
    Patch-Category: asterisk
---
 pjlib/src/pj/sock_bsd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c
index 8c2b577..ae10e6f 100644
--- a/pjlib/src/pj/sock_bsd.c
+++ b/pjlib/src/pj/sock_bsd.c
@@ -539,6 +539,10 @@ PJ_DEF(pj_status_t) pj_sock_socket(int af,
 	    pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),
 			       &val, sizeof(val));
 	}
+	if (af != PJ_AF_INET) { /* Linux Kernel 2.4.21; June 2003 */
+	    pj_sock_setsockopt(*sock, PJ_SOL_IPV6, IPV6_V6ONLY,
+			       &val, sizeof(val));
+	}
 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \
     PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0
 	if (type == pj_SOCK_DGRAM()) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git



More information about the Pkg-voip-commits mailing list