Browse code

core: exported get_valid_proto_name() via headers

Daniel-Constantin Mierla authored on 30/08/2012 08:16:04
Showing 2 changed files
... ...
@@ -331,7 +331,7 @@ static void free_sock_info(struct socket_info* si)
331 331
 
332 332
 
333 333
 
334
-static char* get_valid_proto_name(unsigned short proto)
334
+char* get_valid_proto_name(unsigned short proto)
335 335
 {
336 336
 	switch(proto){
337 337
 		case PROTO_NONE:
... ...
@@ -105,6 +105,8 @@ struct socket_info** get_sock_info_list(unsigned short proto);
105 105
 int parse_phostport(char* s, char** host, int* hlen,
106 106
 								 int* port, int* proto);
107 107
 
108
+char* get_valid_proto_name(unsigned short proto);
109
+
108 110
 /* helper function:
109 111
  * returns next protocol, if the last one is reached return 0
110 112
  * useful for cycling on the supported protocols