Browse code

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

Daniel-Constantin Mierla authored on 25/05/2013 13:39:13
Showing 1 changed files
... ...
@@ -1900,9 +1900,6 @@ int main(int argc, char** argv)
1900 1900
 		goto error;
1901 1901
 #ifdef USE_TCP
1902 1902
 	init_tcp_options(); /* set the defaults before the config */
1903
-#endif
1904
-#ifdef USE_SCTP
1905
-	sctp_core_init_options(); /* set defaults before the config */
1906 1903
 #endif
1907 1904
 	/* process command line (cfg. file path etc) */
1908 1905
 	optind = 1;  /* reset getopt */
... ...
@@ -1941,12 +1938,6 @@ int main(int argc, char** argv)
1941 1938
 					printf("version: %s\n", full_version);
1942 1939
 					printf("flags: %s\n", ver_flags );
1943 1940
 					print_ct_constants();
1944
-#ifdef USE_SCTP
1945
-					tmp=malloc(256);
1946
-					if (tmp && (sctp_core_check_compiled_sockopts(tmp, 256)!=0))
1947
-						printf("sctp unsupported socket options: %s\n", tmp);
1948
-					if (tmp) free(tmp);
1949
-#endif
1950 1941
 					printf("id: %s\n", ver_id);
1951 1942
 					printf("compiled on %s with %s\n",
1952 1943
 							ver_compiled_time, ver_compiler );