Mercurial > hg > freeDiameter-dtls
comparison include/freeDiameter/libfdcore.h @ 1180:773498f59520
Preparing for future DTLS/SCTP support
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Wed, 05 Jun 2013 15:02:29 +0800 |
parents | 11724ff78638 |
children | 56c36d1007b4 |
comparison
equal
deleted
inserted
replaced
1179:f5e9b53d6f86 | 1180:773498f59520 |
---|---|
126 unsigned int cnf_timer_tc; /* The value in seconds of the default Tc timer */ | 126 unsigned int cnf_timer_tc; /* The value in seconds of the default Tc timer */ |
127 unsigned int cnf_timer_tw; /* The value in seconds of the default Tw timer */ | 127 unsigned int cnf_timer_tw; /* The value in seconds of the default Tw timer */ |
128 | 128 |
129 uint16_t cnf_port; /* the local port for legacy Diameter (default: 3868) in host byte order */ | 129 uint16_t cnf_port; /* the local port for legacy Diameter (default: 3868) in host byte order */ |
130 uint16_t cnf_port_tls; /* the local port for Diameter/TLS (default: 5658) in host byte order */ | 130 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) */ | |
131 uint16_t cnf_sctp_str; /* default max number of streams for SCTP associations (def: 30) */ | 132 uint16_t cnf_sctp_str; /* default max number of streams for SCTP associations (def: 30) */ |
132 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. */ | 133 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. */ |
133 struct fd_list cnf_apps; /* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */ | 134 struct fd_list cnf_apps; /* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */ |
134 uint16_t cnf_dispthr; /* Number of dispatch threads to create */ | 135 uint16_t cnf_dispthr; /* Number of dispatch threads to create */ |
135 struct { | 136 struct { |
246 | 247 |
247 #define PI_SEC_DEFAULT 0 /* New TLS security (handshake after connection, protecting also CER/CEA) */ | 248 #define PI_SEC_DEFAULT 0 /* New TLS security (handshake after connection, protecting also CER/CEA) */ |
248 #define PI_SEC_NONE 1 /* Transparent security with this peer (IPsec) */ | 249 #define PI_SEC_NONE 1 /* Transparent security with this peer (IPsec) */ |
249 #define PI_SEC_TLS_OLD 2 /* Old TLS security (use Inband-Security-Id AVP during CER/CEA) */ | 250 #define PI_SEC_TLS_OLD 2 /* Old TLS security (use Inband-Security-Id AVP during CER/CEA) */ |
250 /* Set sec = 3 to authorize use of (Inband-Security-Id == NONE) with this peer, sec = 2 only authorizing TLS */ | 251 /* 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) */ | |
251 | 255 |
252 #define PI_EXP_NONE 0 /* the peer entry does not expire */ | 256 #define PI_EXP_NONE 0 /* the peer entry does not expire */ |
253 #define PI_EXP_INACTIVE 1 /* the peer entry expires (i.e. is deleted) after pi_lft seconds without activity */ | 257 #define PI_EXP_INACTIVE 1 /* the peer entry expires (i.e. is deleted) after pi_lft seconds without activity */ |
254 | 258 |
255 #define PI_PRST_NONE 0 /* the peer entry is deleted after disconnection / error */ | 259 #define PI_PRST_NONE 0 /* the peer entry is deleted after disconnection / error */ |
265 struct { | 269 struct { |
266 unsigned pro3 :2; /* PI_P3_* */ | 270 unsigned pro3 :2; /* PI_P3_* */ |
267 unsigned pro4 :2; /* PI_P4_* */ | 271 unsigned pro4 :2; /* PI_P4_* */ |
268 unsigned alg :1; /* PI_ALGPREF_* */ | 272 unsigned alg :1; /* PI_ALGPREF_* */ |
269 unsigned sec :2; /* PI_SEC_* */ | 273 unsigned sec :2; /* PI_SEC_* */ |
274 unsigned sctpsec :1; /* PI_SCTPSEC_* */ | |
270 unsigned exp :1; /* PI_EXP_* */ | 275 unsigned exp :1; /* PI_EXP_* */ |
271 unsigned persist :1; /* PI_PRST_* */ | 276 unsigned persist :1; /* PI_PRST_* */ |
272 | 277 |
273 } pic_flags; /* Flags influencing the connection to the remote peer */ | 278 } pic_flags; /* Flags influencing the connection to the remote peer */ |
274 | 279 |