Navigation


Changeset 1180:773498f59520 in freeDiameter for include


Ignore:
Timestamp:
Jun 5, 2013, 4:02:29 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Preparing for future DTLS/SCTP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1169 r1180  
    129129        uint16_t         cnf_port;      /* the local port for legacy Diameter (default: 3868) in host byte order */
    130130        uint16_t         cnf_port_tls;  /* the local port for Diameter/TLS (default: 5658) in host byte order */
     131        uint16_t         cnf_port_3436; /* Open an additional server port to listen to old TLS/SCTP clients (RFC3436, freeDiameter versions < 1.2.0) */
    131132        uint16_t         cnf_sctp_str;  /* default max number of streams for SCTP associations (def: 30) */
    132133        struct fd_list   cnf_endpoints; /* the local endpoints to bind the server to. list of struct fd_endpoint. default is empty (bind all). After servers are started, this is the actual list of endpoints including port information. */
     
    249250#define PI_SEC_TLS_OLD  2       /* Old TLS security (use Inband-Security-Id AVP during CER/CEA) */
    250251                                /* Set sec = 3 to authorize use of (Inband-Security-Id == NONE) with this peer, sec = 2 only authorizing TLS */
     252                               
     253#define PI_SCTPSEC_DEF  0       /* Use DTLS over SCTP to connect to this peer (default) */
     254#define PI_SCTPSEC_3436 1       /* Use TLS over SCTP to connect to this peer (RFC3436) */
    251255
    252256#define PI_EXP_NONE     0       /* the peer entry does not expire */
     
    268272                        unsigned        alg :1;         /* PI_ALGPREF_* */
    269273                        unsigned        sec :2;         /* PI_SEC_* */
     274                        unsigned        sctpsec :1;     /* PI_SCTPSEC_* */
    270275                        unsigned        exp :1;         /* PI_EXP_* */
    271276                        unsigned        persist :1;     /* PI_PRST_* */
Note: See TracChangeset for help on using the changeset viewer.