summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shellconfig.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-09-15 08:00:18 +1000
committerChris Johns <chrisj@rtems.org>2014-09-16 15:19:58 +1000
commita8fa078f1efcc682f7155ab7423543d7d582f80a (patch)
treea8229f5851d15500c3491453dcf955b7bff35fb6 /cpukit/libmisc/shell/shellconfig.h
parentdoc: Clarify ABI in SPARC CPU supplement (diff)
downloadrtems-a8fa078f1efcc682f7155ab7423543d7d582f80a.tar.bz2
shell: Add a ping command.
The ping code is taken from a recent FreeBSD release. Some options have been tested, other not tested or do not work. This could be due to the age of our TCP/IP stack. This version of ping will not work if more than 64 file descriptors are open at once because the select FD size is 64 as set in newlib.
Diffstat (limited to 'cpukit/libmisc/shell/shellconfig.h')
-rw-r--r--cpukit/libmisc/shell/shellconfig.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/shellconfig.h b/cpukit/libmisc/shell/shellconfig.h
index 2cdfcc52f9..988bf88a4a 100644
--- a/cpukit/libmisc/shell/shellconfig.h
+++ b/cpukit/libmisc/shell/shellconfig.h
@@ -84,6 +84,7 @@ extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
extern rtems_shell_cmd_t rtems_shell_ROUTE_Command;
extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command;
+ extern rtems_shell_cmd_t rtems_shell_PING_Command;
#endif
extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
@@ -441,6 +442,12 @@ extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
defined(CONFIGURE_SHELL_COMMAND_NETSTATS)
&rtems_shell_NETSTATS_Command,
#endif
+
+ #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
+ !defined(CONFIGURE_SHELL_NO_COMMAND_PING)) || \
+ defined(CONFIGURE_SHELL_COMMAND_PING)
+ &rtems_shell_PING_Command,
+ #endif
#endif
/* Miscanellous shell commands */