Navigation



Ignore:
Timestamp:
Oct 1, 2009, 6:24:07 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Some progress on peers module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r13 r14  
    141141        ,FDEV_DUMP_PEERS        /* Dump the list of peers */
    142142};
    143 
     143const char * fd_ev_str(int event);
    144144
    145145
     
    151151enum peer_state {
    152152        /* Stable states */
    153         STATE_DISABLED = 1,     /* No connexion must be attempted / only this state means that the peer PSM thread is not running */
     153        STATE_ZOMBIE = 0,       /* The threads handling the peer are not running for some reason */
    154154        STATE_OPEN,             /* Connexion established */
    155155       
     
    167167        /* Failover state machine */
    168168        STATE_SUSPECT,          /* A DWR was sent and not answered within TwTime. Failover in progress. */
    169         STATE_REOPEN            /* Connection has been re-established, waiting for 3 DWR/DWA exchanges before putting back to service */
     169        STATE_REOPEN,           /* Connection has been re-established, waiting for 3 DWR/DWA exchanges before putting back to service */
    170170};
    171171extern const char *peer_state_str[];
    172172#define STATE_STR(state) \
    173         peer_state_str[ ((unsigned)(state)) <= STATE_REOPEN ? ((unsigned)(state)) : 0 ]
     173        (((unsigned)(state)) <= STATE_REOPEN ? peer_state_str[((unsigned)(state)) ] : "<Invalid>")
    174174
    175175/* Information about a remote peer. Same structure is used for creating a new entry, but not all fields are meaningful in that case */
     
    238238        }               pi_sec_data;
    239239       
    240         /* The remaining information is read-only, not used for peer creation */
     240        /* The remaining information must not be modified, and is not used for peer creation */
    241241        enum peer_state pi_state;
    242242        uint32_t        pi_vendorid;    /* Content of the Vendor-Id AVP, or 0 by default */
Note: See TracChangeset for help on using the changeset viewer.