diff options
| author | aozima <[email protected]> | 2014-04-09 13:17:21 +0800 |
|---|---|---|
| committer | aozima <[email protected]> | 2014-04-09 13:17:21 +0800 |
| commit | f61773305a5c7ccfa37e580262afcfd336217380 (patch) | |
| tree | 6de0061e2cb3b55e6c97df739ae51e60a2182f90 /components | |
| parent | 4fada1a13a696f8db22652304316460af5622877 (diff) | |
MSH: add cmd netstat.
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/msh_cmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c index 83b3930213..3bbd46958f 100644 --- a/components/finsh/msh_cmd.c +++ b/components/finsh/msh_cmd.c @@ -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) |
