changeset 248:d3e892306468

Cannot read/write SCTP_AUTO_ASCONF for bound sockets in FreeBSD
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 02 Apr 2010 15:44:23 +0900
parents f89b5a12d2af
children 6e6ada749a11
files freeDiameter/sctp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/sctp.c	Fri Apr 02 15:33:50 2010 +0900
+++ b/freeDiameter/sctp.c	Fri Apr 02 15:44:23 2010 +0900
@@ -549,7 +549,7 @@
 	
 	/* Set the ASCONF option */
 	#ifdef SCTP_AUTO_ASCONF
-	{
+	if (bound_to_default) {
 		int asconf;
 		
 		if (TRACE_BOOL(SCTP_LEVEL)) {
@@ -566,7 +566,7 @@
 			fd_log_debug( "Def SCTP_AUTO_ASCONF value : %s\n", asconf ? "true" : "false");
 		}
 
-		asconf = bound_to_default ? 1 : 0;	/* allow automatic use of added or removed addresses in the association (for bound-all sockets) */
+		asconf = 1;	/* allow automatic use of added or removed addresses in the association (for bound-all sockets) */
 		
 		/* Set the option to the socket */
 		CHECK_SYS(  setsockopt(sk, IPPROTO_SCTP, SCTP_AUTO_ASCONF, &asconf, sizeof(asconf))  );
"Welcome to our mercurial repository"