MSH: add cmd netstat.

This commit is contained in:
aozima 2014-04-09 13:17:21 +08:00
parent 4fada1a13a
commit f61773305a

View File

@ -207,6 +207,15 @@ int cmd_ifconfig(int argc, char** argv)
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_ifconfig, __cmd_ifconfig, list the information of network interfaces);
int cmd_netstat(int argc, char** argv)
{
extern void list_tcps(void);
list_tcps();
return 0;
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_netstat, __cmd_netstat, list the information of TCP/IP);
#endif /* RT_USING_LWIP */
int cmd_ps(int argc, char** argv)