Changeset 1187:436e4342ecd0 in freeDiameter for libfdcore/server.c
- Timestamp:
- Jun 10, 2013, 1:04:50 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/server.c
r1181 r1187 54 54 struct cnxctx * conn; /* server connection context (listening socket) */ 55 55 int proto; /* IPPROTO_TCP or IPPROTO_SCTP */ 56 int secur; /* TLS is started immediatly after connection ? 0: no; 1: yes (TLS/TCP or DTLS/SCTP);2: yes (TLS/TCP or TLS/SCTP) */56 int secur; /* TLS is started immediatly after connection ? 0: no; 2: yes (TLS/TCP or TLS/SCTP) */ 57 57 58 58 pthread_t thr; /* The thread listening for new connections */ … … 361 361 /* Create the server on secure port */ 362 362 if (fd_g_config->cnf_port_tls) { 363 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 1) );363 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 2 /* Change when DTLS is introduced */) ); 364 364 CHECK_MALLOC( s->conn = fd_cnx_serv_sctp(fd_g_config->cnf_port_tls, empty_conf_ep ? NULL : &fd_g_config->cnf_endpoints) ); 365 365 fd_list_insert_before( &FD_SERVERS, &s->chain ); … … 368 368 369 369 /* Create the other server on 3436 secure port */ 370 if (fd_g_config->cnf_port_3436) {370 /*if (fd_g_config->cnf_port_3436) { 371 371 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 2) ); 372 372 CHECK_MALLOC( s->conn = fd_cnx_serv_sctp(fd_g_config->cnf_port_3436, empty_conf_ep ? NULL : &fd_g_config->cnf_endpoints) ); 373 373 fd_list_insert_before( &FD_SERVERS, &s->chain ); 374 374 CHECK_POSIX( pthread_create( &s->thr, NULL, serv_th, s ) ); 375 } 375 }*/ 376 376 377 377 #endif /* DISABLE_SCTP */
Note: See TracChangeset
for help on using the changeset viewer.