[sr-dev] git:master: core: remove sctp options init from core
Daniel-Constantin Mierla
miconda at gmail.com
Sat May 25 17:29:06 CEST 2013
Module: sip-router
Branch: master
Commit: e9f7980602cadcc179425cad57a4d0f89c63fb55
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e9f7980602cadcc179425cad57a4d0f89c63fb55
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Sat May 25 15:39:13 2013 +0200
core: remove sctp options init from core
- will be done in mod_register() from sctp module
- don't print anymore info about sctp unsupported socket options in
output of -v, they are known now only in sctp module which is not
loaded at that time
- sctp will print a warn message in mod init about unsupported socket
options
---
main.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/main.c b/main.c
index e489daf..05f45b5 100644
--- a/main.c
+++ b/main.c
@@ -1901,9 +1901,6 @@ int main(int argc, char** argv)
#ifdef USE_TCP
init_tcp_options(); /* set the defaults before the config */
#endif
-#ifdef USE_SCTP
- sctp_core_init_options(); /* set defaults before the config */
-#endif
/* process command line (cfg. file path etc) */
optind = 1; /* reset getopt */
/* switches required before script processing */
@@ -1941,12 +1938,6 @@ int main(int argc, char** argv)
printf("version: %s\n", full_version);
printf("flags: %s\n", ver_flags );
print_ct_constants();
-#ifdef USE_SCTP
- tmp=malloc(256);
- if (tmp && (sctp_core_check_compiled_sockopts(tmp, 256)!=0))
- printf("sctp unsupported socket options: %s\n", tmp);
- if (tmp) free(tmp);
-#endif
printf("id: %s\n", ver_id);
printf("compiled on %s with %s\n",
ver_compiled_time, ver_compiler );
More information about the sr-dev
mailing list