summaryrefslogtreecommitdiff
path: root/include/cmd_net.h
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-05 19:27:42 +0000
committerwdenk <wdenk>2003-06-05 19:27:42 +0000
commit73a8b27c574f5ec1c8fdd9d8d065bb845d8743d3 (patch)
treef409359364776e565b9484337a0620388041b456 /include/cmd_net.h
parent08eaea9c9fa4e8ea25325610c512cb90b6bea1dd (diff)
downloadu-boot-imx-73a8b27c574f5ec1c8fdd9d8d065bb845d8743d3.zip
u-boot-imx-73a8b27c574f5ec1c8fdd9d8d065bb845d8743d3.tar.gz
u-boot-imx-73a8b27c574f5ec1c8fdd9d8d065bb845d8743d3.tar.bz2
* Add support for RMU board
* Add support for TQM862L at 100/50 MHz * Patch by Pantelis Antoniou, 02 Jun 2003: major reconstruction of networking code; add "ping" support (outgoing only!)
Diffstat (limited to 'include/cmd_net.h')
-rw-r--r--include/cmd_net.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cmd_net.h b/include/cmd_net.h
index e9ca5c5..842cb3e 100644
--- a/include/cmd_net.h
+++ b/include/cmd_net.h
@@ -64,11 +64,24 @@ int do_dhcp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
#define CMD_TBL_DHCP
#endif /* CFG_CMD_DHCP */
+#if (CONFIG_COMMANDS & CFG_CMD_PING)
+#define CMD_TBL_PING MK_CMD_TBL_ENTRY( \
+ "ping", 4, 2, 1, do_ping, \
+ "ping - check if host is reachable\n", \
+ "host\n" \
+),
+
+int do_ping (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+#else
+#define CMD_TBL_PING
+#endif /* CFG_CMD_PING */
+
#else
#define CMD_TBL_BOOTP
#define CMD_TBL_TFTPB
#define CMD_TBL_RARPB
#define CMD_TBL_DHCP
+#define CMD_TBL_PING
#endif /* CFG_CMD_NET */
#endif