diff options
Diffstat (limited to 'cmd/lwip/ping.c')
-rw-r--r-- | cmd/lwip/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/lwip/ping.c b/cmd/lwip/ping.c index 6996931fa40..87f8e958e48 100644 --- a/cmd/lwip/ping.c +++ b/cmd/lwip/ping.c @@ -14,7 +14,7 @@ #include <time.h> U_BOOT_CMD(ping, 2, 1, do_ping, "send ICMP ECHO_REQUEST to network host", - "pingAddress"); + "pingAddressOrHostName"); #define PING_DELAY_MS 1000 #define PING_COUNT 5 @@ -167,7 +167,7 @@ int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) if (argc < 2) return CMD_RET_USAGE; - if (!ipaddr_aton(argv[1], &addr)) + if (net_lwip_dns_resolve(argv[1], &addr)) return CMD_RET_USAGE; restart: |