Changeset 74:9dcb1bd11a07 in freeDiameter
- Timestamp:
- Dec 1, 2009, 2:14:34 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
README
r1 r74 11 11 12 12 See INSTALL for information on building and using this software. 13 14 -------------- 15 Known possible bugs: 16 - management of the Host-IP-Address values in CER/CEA may be strange (for TCP and SCTP) 17 -
freeDiameter/cnxctx.c
r59 r74 704 704 { 705 705 char buf[48]; 706 snprintf(buf, sizeof(buf), "Receiver (%d) TLS/ single stream)", conn->cc_socket);706 snprintf(buf, sizeof(buf), "Receiver (%d) TLS/single stream", conn->cc_socket); 707 707 fd_log_threadname ( buf ); 708 708 } -
freeDiameter/p_dw.c
r66 r74 141 141 int fd_p_dw_timeout(struct fd_peer * peer) 142 142 { 143 TRACE_ENTRY("%p", peer); 144 143 145 if (peer->p_flags.pf_dw_pending) { 144 146 /* We have sent a DWR and received no answer during TwTimer */ … … 151 153 } 152 154 153 154 155 return 0; 155 156 } … … 158 159 int fd_p_dw_reopen(struct fd_peer * peer) 159 160 { 161 TRACE_ENTRY("%p", peer); 162 160 163 peer->p_flags.pf_reopen_cnt = 1; 164 peer->p_flags.pf_cnx_pb = 0; 161 165 CHECK_FCT( send_DWR(peer) ); 162 166 -
freeDiameter/p_psm.c
r70 r74 236 236 peer->p_psm_timer.tv_sec += delay; 237 237 238 TRACE_DEBUG(FULL, "Peer timeout reset to %d seconds%s", delay, add_random ? " (+/- 2)", "" ); 239 238 240 #ifdef SLOW_PSM 239 241 /* temporary for debug */ … … 246 248 { 247 249 /* Move to CLOSED state: failover messages, stop OUT thread, unlink peer from active list */ 248 CHECK_FCT_DO( fd_psm_change_state(peer, STATE_CLOSED), /* continue */ ); 250 if (peer->p_hdr.info.runtime.pir_state != STATE_ZOMBIE) { 251 CHECK_FCT_DO( fd_psm_change_state(peer, STATE_CLOSED), /* continue */ ); 252 } 249 253 250 254 fd_p_cnx_abort(peer, terminate); … … 514 518 switch (peer->p_hdr.info.runtime.pir_state) { 515 519 case STATE_WAITCNXACK_ELEC: 516 TODO("Reply CEA on the receiver side and go to OPEN state"); 517 goto psm_loop; 520 /* Abort the initiating side */ 521 fd_p_cnx_abort(peer, 0); 522 /* Process the receiver side */ 523 CHECK_FCT_DO( fd_p_ce_process_receiver(peer), goto psm_end ); 524 break; 518 525 519 526 case STATE_OPEN: … … 534 541 535 542 case STATE_CLOSED: 536 /* Go to the next event */ 537 goto psm_loop; 538 } 543 /* Just ignore */ 544 ; 545 } 546 goto psm_loop; 539 547 } 540 548 -
freeDiameter/p_sr.c
r73 r74 36 36 #include "fD.h" 37 37 38 #ifndef SR_DEBUG_LVL 39 #define SR_DEBUG_LVL ANNOYING 40 #endif /* SR_DEBUG_LVL */ 41 38 42 /* Structure to store a sent request */ 39 43 struct sentreq { … … 61 65 { 62 66 struct fd_list * li; 63 if (!TRACE_BOOL( FULL))67 if (!TRACE_BOOL(SR_DEBUG_LVL)) 64 68 return; 65 69 fd_log_debug("%sSentReq list @%p:\n", text, srlist); … … 68 72 uint32_t * nexthbh = li->o; 69 73 fd_log_debug(" - Next req (%x):\n", *nexthbh); 70 fd_msg_dump_one( FULL + 1, sr->req);74 fd_msg_dump_one(SR_DEBUG_LVL + 1, sr->req); 71 75 } 72 76 } -
freeDiameter/server.c
r33 r74 142 142 CHECK_FCT_DO( fd_msg_parse_rules( msg, fd_g_config->cnf_dict, NULL ), /* Parsing failed -- trace details ? */ goto cleanup ); 143 143 144 if (TRACE_BOOL(FULL)) { 145 fd_log_debug("Received Diameter message from new client '%s':\n", fd_cnx_getid(c->conn)); 146 fd_msg_dump_walk(FULL, msg); 147 } 144 fd_msg_dump_walk(FULL, msg); 148 145 149 146 /* Now check we received a CER */
Note: See TracChangeset
for help on using the changeset viewer.