提交 6856a8b5 编写于 作者: M MurphyZhao

[finsh] update netstat

Signed-off-by: NMurphyZhao <d2014zjt@163.com>
上级 0f3820f1
...@@ -381,14 +381,19 @@ int cmd_dns(int argc, char **argv) ...@@ -381,14 +381,19 @@ int cmd_dns(int argc, char **argv)
FINSH_FUNCTION_EXPORT_ALIAS(cmd_dns, __cmd_dns, list the information of dns); FINSH_FUNCTION_EXPORT_ALIAS(cmd_dns, __cmd_dns, list the information of dns);
#endif #endif
#ifdef RT_LWIP_TCP #if defined (RT_LWIP_TCP) || defined (RT_LWIP_UDP)
int cmd_netstat(int argc, char **argv) int cmd_netstat(int argc, char **argv)
{ {
extern void list_tcps(void); extern void list_tcps(void);
extern void list_udps(void); extern void list_udps(void);
#ifdef RT_LWIP_TCP
list_tcps(); list_tcps();
#endif
#ifdef RT_LWIP_UDP
list_udps(); list_udps();
#endif
return 0; return 0;
} }
FINSH_FUNCTION_EXPORT_ALIAS(cmd_netstat, __cmd_netstat, list the information of TCP / IP); FINSH_FUNCTION_EXPORT_ALIAS(cmd_netstat, __cmd_netstat, list the information of TCP / IP);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册