summaryrefslogtreecommitdiffstats
path: root/net/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ping.c b/net/ping.c
index 1fef18ae0b..26b7778823 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -97,6 +97,9 @@ int do_ping (cmd_tbl_t *cmdtp, int argc, char *argv[])
return -1;
}
+ if (NetLoopInit(PING) < 0)
+ return 1;
+
if (NetLoop(PING) < 0) {
printf("ping failed; host %s is not alive\n", argv[1]);
return 1;