瀏覽代碼

Export get_sock_info_list function to modules

Jan Janak 17 年之前
父節點
當前提交
00c747a1b1
共有 2 個文件被更改,包括 2 次插入2 次删除
  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 
    invalid */
-static struct socket_info** get_sock_info_list(unsigned short proto)
+struct socket_info** get_sock_info_list(unsigned short 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,
 												unsigned short proto);
 
-
+struct socket_info** get_sock_info_list(unsigned short proto);
 
 /* helper function:
  * returns next protocol, if the last one is reached return 0