Navigation


Changeset 74:9dcb1bd11a07 in freeDiameter


Ignore:
Timestamp:
Dec 1, 2009, 2:14:34 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Some cleanups

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • README

    r1 r74  
    1111
    1212See INSTALL for information on building and using this software.
     13
     14--------------
     15Known 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  
    704704        {
    705705                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);
    707707                fd_log_threadname ( buf );
    708708        }
  • freeDiameter/p_dw.c

    r66 r74  
    141141int fd_p_dw_timeout(struct fd_peer * peer)
    142142{
     143        TRACE_ENTRY("%p", peer);
     144
    143145        if (peer->p_flags.pf_dw_pending) {
    144146                /* We have sent a DWR and received no answer during TwTimer */
     
    151153        }
    152154       
    153        
    154155        return 0;
    155156}
     
    158159int fd_p_dw_reopen(struct fd_peer * peer)
    159160{
     161        TRACE_ENTRY("%p", peer);
     162
    160163        peer->p_flags.pf_reopen_cnt = 1;
     164        peer->p_flags.pf_cnx_pb = 0;
    161165        CHECK_FCT( send_DWR(peer) );
    162166       
  • freeDiameter/p_psm.c

    r70 r74  
    236236        peer->p_psm_timer.tv_sec += delay;
    237237       
     238        TRACE_DEBUG(FULL, "Peer timeout reset to %d seconds%s", delay, add_random ? " (+/- 2)", "" );
     239       
    238240#ifdef SLOW_PSM
    239241        /* temporary for debug */
     
    246248{
    247249        /* 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        }
    249253       
    250254        fd_p_cnx_abort(peer, terminate);
     
    514518                switch (peer->p_hdr.info.runtime.pir_state) {
    515519                        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;
    518525                       
    519526                        case STATE_OPEN:
     
    534541                               
    535542                        case STATE_CLOSED:
    536                                 /* Go to the next event */
    537                                 goto psm_loop;
    538                 }
     543                                /* Just ignore */
     544                                ;
     545                }
     546                goto psm_loop;
    539547        }
    540548       
  • freeDiameter/p_sr.c

    r73 r74  
    3636#include "fD.h"
    3737
     38#ifndef SR_DEBUG_LVL
     39#define SR_DEBUG_LVL ANNOYING
     40#endif /* SR_DEBUG_LVL */
     41
    3842/* Structure to store a sent request */
    3943struct sentreq {
     
    6165{
    6266        struct fd_list * li;
    63         if (!TRACE_BOOL(FULL))
     67        if (!TRACE_BOOL(SR_DEBUG_LVL))
    6468                return;
    6569        fd_log_debug("%sSentReq list @%p:\n", text, srlist);
     
    6872                uint32_t * nexthbh = li->o;
    6973                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);
    7175        }
    7276}
  • freeDiameter/server.c

    r33 r74  
    142142        CHECK_FCT_DO( fd_msg_parse_rules( msg, fd_g_config->cnf_dict, NULL ), /* Parsing failed -- trace details ? */ goto cleanup );
    143143       
    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);
    148145       
    149146        /* Now check we received a CER */
Note: See TracChangeset for help on using the changeset viewer.