Browse code

Export get_sock_info_list function to modules

Jan Janak authored on 10/03/2009 16:44:42
Showing 2 changed files
... ...
@@ -301,7 +301,7 @@ static char* get_proto_name(unsigned short proto)
301 301
 
302 302
 /* returns 0 if support for the protocol is not compiled or if proto is 
303 303
    invalid */
304
-static struct socket_info** get_sock_info_list(unsigned short proto)
304
+struct socket_info** get_sock_info_list(unsigned short proto)
305 305
 {
306 306
 	
307 307
 	switch(proto){
... ...
@@ -88,7 +88,7 @@ struct socket_info* grep_sock_info_by_port(unsigned short port,
88 88
 struct socket_info* find_si(struct ip_addr* ip, unsigned short port,
89 89
 												unsigned short proto);
90 90
 
91
-
91
+struct socket_info** get_sock_info_list(unsigned short proto);
92 92
 
93 93
 /* helper function:
94 94
  * returns next protocol, if the last one is reached return 0