[asterisk-commits] seanbright: branch seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_se...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 1 16:04:05 CST 2012
Author: seanbright
Date: Thu Mar 1 16:04:01 2012
New Revision: 357719
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357719
Log:
Use the family from our binding address instead of AF_INET.
Modified:
team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/main/netsock.c
Modified: team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/main/netsock.c
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/main/netsock.c?view=diff&rev=357719&r1=357718&r2=357719
==============================================================================
--- team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/main/netsock.c (original)
+++ team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/main/netsock.c Thu Mar 1 16:04:01 2012
@@ -113,7 +113,7 @@
const int reuseFlag = 1;
/* Make a UDP socket */
- netsocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
+ netsocket = socket(bindaddr->ss.ss_family, SOCK_DGRAM, IPPROTO_IP);
if (netsocket < 0) {
ast_log(LOG_ERROR, "Unable to create network socket: %s\n", strerror(errno));
More information about the asterisk-commits
mailing list