Browse Source

Export get_sock_info_list function to modules

Jan Janak 16 years ago
parent
commit
00c747a1b1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      socket_info.c
  2. 1 1
      socket_info.h

+ 1 - 1
socket_info.c

@@ -301,7 +301,7 @@ static char* get_proto_name(unsigned short proto)
 
 
 /* returns 0 if support for the protocol is not compiled or if proto is 
 /* returns 0 if support for the protocol is not compiled or if proto is 
    invalid */
    invalid */
-static struct socket_info** get_sock_info_list(unsigned short proto)
+struct socket_info** get_sock_info_list(unsigned short proto)
 {
 {
 	
 	
 	switch(proto){
 	switch(proto){

+ 1 - 1
socket_info.h

@@ -88,7 +88,7 @@ struct socket_info* grep_sock_info_by_port(unsigned short port,
 struct socket_info* find_si(struct ip_addr* ip, unsigned short port,
 struct socket_info* find_si(struct ip_addr* ip, unsigned short port,
 												unsigned short proto);
 												unsigned short proto);
 
 
-
+struct socket_info** get_sock_info_list(unsigned short proto);
 
 
 /* helper function:
 /* helper function:
  * returns next protocol, if the last one is reached return 0
  * returns next protocol, if the last one is reached return 0