From a40eec45a1be7a6a9ba939493e78f31ee29160bc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 9 Dec 2011 18:21:17 +0000 Subject: 2011-12-09 Joel Sherrill PR 1985/cpukit * telnetd/icmds.c: Removed. All functionality is in shell. Obsolete and unreferenced. --- cpukit/telnetd/icmds.c | 64 -------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 cpukit/telnetd/icmds.c (limited to 'cpukit/telnetd/icmds.c') diff --git a/cpukit/telnetd/icmds.c b/cpukit/telnetd/icmds.c deleted file mode 100644 index 400fafc539..0000000000 --- a/cpukit/telnetd/icmds.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Author: Fernando RUIZ CASAS (fernando.ruiz@ctv.es) - * May 2001 - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_inet(int argc,char * argv[]) { - rtems_bsdnet_show_inet_routes (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_mbuf(int argc,char * argv[]) { - rtems_bsdnet_show_mbuf_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_if(int argc,char * argv[]) { - rtems_bsdnet_show_if_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_ip(int argc,char * argv[]) { - rtems_bsdnet_show_ip_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_icmp(int argc,char * argv[]) { - rtems_bsdnet_show_icmp_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_tcp(int argc,char * argv[]) { - rtems_bsdnet_show_tcp_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ -static int main_udp(int argc,char * argv[]) { - rtems_bsdnet_show_udp_stats (); - return 0; -} -/*+++++++++++++++++++++++++++++++++++++++++++++*/ - -void _rtems_telnetd_register_icmds(void) { - rtems_shell_add_cmd("inet" ,"net","inet routes" ,main_inet); - rtems_shell_add_cmd("mbuf" ,"net","mbuf stats" ,main_mbuf); - rtems_shell_add_cmd("if" ,"net","if stats" ,main_if ); - rtems_shell_add_cmd("ip" ,"net","ip stats" ,main_ip ); - rtems_shell_add_cmd("icmp" ,"net","icmp stats" ,main_icmp); - rtems_shell_add_cmd("tcp" ,"net","tcp stats" ,main_tcp ); - rtems_shell_add_cmd("udp" ,"net","udp stats" ,main_udp ); -} -- cgit v1.2.3