# HG changeset patch # User Sebastien Decugis # Date 1270190663 -32400 # Node ID d3e8923064680519498ddc1e041a47ce324ff671 # Parent f89b5a12d2afb9421c044bf405a0fb6f47dc8900 Cannot read/write SCTP_AUTO_ASCONF for bound sockets in FreeBSD diff -r f89b5a12d2af -r d3e892306468 freeDiameter/sctp.c --- 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)) );