comparison freeDiameter/cnxctx.c @ 402:1e1dc47ef241

Fix remaining problem, closes #6
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 08 Jul 2010 12:50:10 +0900
parents 918fbb92eb8b
children 26aafbbc1640
comparison
equal deleted inserted replaced
401:76bdc4070347 402:1e1dc47ef241
401 /* Set the timeout */ 401 /* Set the timeout */
402 fd_cnx_s_setto(cnx->cc_socket); 402 fd_cnx_s_setto(cnx->cc_socket);
403 403
404 /* Retrieve the number of streams and primary address */ 404 /* Retrieve the number of streams and primary address */
405 CHECK_FCT_DO( fd_sctp_get_str_info( sock, &cnx->cc_sctp_para.str_in, &cnx->cc_sctp_para.str_out, &primary ), goto error ); 405 CHECK_FCT_DO( fd_sctp_get_str_info( sock, &cnx->cc_sctp_para.str_in, &cnx->cc_sctp_para.str_out, &primary ), goto error );
406 if (cnx->cc_sctp_para.str_out > cnx->cc_sctp_para.str_in) 406 if (cnx->cc_sctp_para.str_out < cnx->cc_sctp_para.str_in)
407 cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_out; 407 cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_out;
408 else 408 else
409 cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_in; 409 cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_in;
410 410
411 if (TRACE_BOOL(INFO)) { 411 if (TRACE_BOOL(INFO)) {
"Welcome to our mercurial repository"