Browse Source

core: exported get_valid_proto_name() via headers

Daniel-Constantin Mierla 13 years ago
parent
commit
132df8d61e
2 changed files with 3 additions and 1 deletions
  1. 1 1
      socket_info.c
  2. 2 0
      socket_info.h

+ 1 - 1
socket_info.c

@@ -331,7 +331,7 @@ static void free_sock_info(struct socket_info* si)
 
 
 
-static char* get_valid_proto_name(unsigned short proto)
+char* get_valid_proto_name(unsigned short proto)
 {
 	switch(proto){
 		case PROTO_NONE:

+ 2 - 0
socket_info.h

@@ -105,6 +105,8 @@ struct socket_info** get_sock_info_list(unsigned short proto);
 int parse_phostport(char* s, char** host, int* hlen,
 								 int* port, int* proto);
 
+char* get_valid_proto_name(unsigned short proto);
+
 /* helper function:
  * returns next protocol, if the last one is reached return 0
  * useful for cycling on the supported protocols