Navigation


Changeset 640:237cf6339546 in freeDiameter for include/freeDiameter


Ignore:
Timestamp:
Dec 20, 2010 7:36:40 PM (2 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Message:

dbg_interactive almost complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r628 r640  
    7070 
    7171/* Structure to hold the configuration of the freeDiameter daemon */ 
     72#define EYEC_CONFIG     0xC011F16 
    7273struct fd_config { 
    7374        int              cnf_eyec;      /* Eye catcher: EYEC_CONFIG */ 
    74                         #define EYEC_CONFIG     0xC011F16 
    7575         
    7676        char            *cnf_file;      /* Configuration file to parse, default is DEFAULT_CONF_FILE */ 
     
    178178        (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>") 
    179179 
     180/* Constants for the peer_info structure bellow */ 
     181#define PI_P3_DEFAULT   0       /* Use any available protocol */ 
     182#define PI_P3_IP        1       /* Use only IP to connect to this peer */ 
     183#define PI_P3_IPv6      2       /* resp, IPv6 */ 
     184 
     185#define PI_P4_DEFAULT   0       /* Attempt any available protocol */ 
     186#define PI_P4_TCP       1       /* Only use TCP */ 
     187#define PI_P4_SCTP      2       /* Only use SCTP */ 
     188 
     189#define PI_ALGPREF_SCTP 0       /* SCTP is  attempted first (default) */ 
     190#define PI_ALGPREF_TCP  1       /* TCP is attempted first */ 
     191 
     192#define PI_SEC_DEFAULT  0       /* New TLS security (handshake after connection, protecting also CER/CEA) */ 
     193#define PI_SEC_NONE     1       /* Transparent security with this peer (IPsec) */ 
     194#define PI_SEC_TLS_OLD  2       /* Old TLS security (use Inband-Security-Id AVP during CER/CEA) */ 
     195                                /* Set sec = 3 to authorize use of (Inband-Security-Id == NONE) with this peer, sec = 2 only authorizing TLS */ 
     196 
     197#define PI_EXP_NONE     0       /* the peer entry does not expire */ 
     198#define PI_EXP_INACTIVE 1       /* the peer entry expires (i.e. is deleted) after pi_lft seconds without activity */ 
     199 
     200#define PI_PRST_NONE    0       /* the peer entry is deleted after disconnection / error */ 
     201#define PI_PRST_ALWAYS  1       /* the peer entry is persistant (will be kept as ZOMBIE in case of error) */ 
     202                         
    180203/* Information about a remote peer */ 
    181204struct peer_info { 
     
    185208        struct { 
    186209                struct { 
    187                         #define PI_P3_DEFAULT   0       /* Use any available protocol */ 
    188                         #define PI_P3_IP        1       /* Use only IP to connect to this peer */ 
    189                         #define PI_P3_IPv6      2       /* resp, IPv6 */ 
    190                         unsigned        pro3 :2; 
    191  
    192                         #define PI_P4_DEFAULT   0       /* Attempt any available protocol */ 
    193                         #define PI_P4_TCP       1       /* Only use TCP */ 
    194                         #define PI_P4_SCTP      2       /* Only use SCTP */ 
    195                         unsigned        pro4 :2; 
    196  
    197                         #define PI_ALGPREF_SCTP 0       /* SCTP is  attempted first (default) */ 
    198                         #define PI_ALGPREF_TCP  1       /* TCP is attempted first */ 
    199                         unsigned        alg :1; 
    200  
    201                         #define PI_SEC_DEFAULT  0       /* New TLS security (handshake after connection, protecting also CER/CEA) */ 
    202                         #define PI_SEC_NONE     1       /* Transparent security with this peer (IPsec) */ 
    203                         #define PI_SEC_TLS_OLD  2       /* Old TLS security (use Inband-Security-Id AVP during CER/CEA) */ 
    204                         unsigned        sec :2;         /* Set sec = 3 to authorize use of (Inband-Security-Id == NONE) with this peer, sec = 2 only authorizing TLS */ 
    205  
    206                         #define PI_EXP_NONE     0       /* the peer entry does not expire */ 
    207                         #define PI_EXP_INACTIVE 1       /* the peer entry expires (i.e. is deleted) after pi_lft seconds without activity */ 
    208                         unsigned        exp :1; 
    209  
    210                         #define PI_PRST_NONE    0       /* the peer entry is deleted after disconnection / error */ 
    211                         #define PI_PRST_ALWAYS  1       /* the peer entry is persistant (will be kept as ZOMBIE in case of error) */ 
    212                         unsigned        persist :1; 
     210                        unsigned        pro3 :2;        /* PI_P3_* */ 
     211                        unsigned        pro4 :2;        /* PI_P4_* */ 
     212                        unsigned        alg :1;         /* PI_ALGPREF_* */ 
     213                        unsigned        sec :2;         /* PI_SEC_* */ 
     214                        unsigned        exp :1;         /* PI_EXP_* */ 
     215                        unsigned        persist :1;     /* PI_PRST_* */ 
    213216                         
    214217                }               pic_flags;      /* Flags influencing the connection to the remote peer */ 
Note: See TracChangeset for help on using the changeset viewer.