mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
rptun_ping: add sleep param to rptun_ping
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -393,7 +393,8 @@ static int cmd_rptun_once(FAR struct nsh_vtbl_s *vtbl,
|
||||
}
|
||||
else if (strcmp(argv[1], "ping") == 0)
|
||||
{
|
||||
if (argv[3] == 0 || argv[4] == 0 || argv[5] == 0)
|
||||
if (argv[3] == 0 || argv[4] == 0 ||
|
||||
argv[5] == 0 || argv[6] == 0)
|
||||
{
|
||||
return ERROR;
|
||||
}
|
||||
@@ -401,6 +402,7 @@ static int cmd_rptun_once(FAR struct nsh_vtbl_s *vtbl,
|
||||
ping.times = atoi(argv[3]);
|
||||
ping.len = atoi(argv[4]);
|
||||
ping.ack = atoi(argv[5]);
|
||||
ping.sleep = atoi(argv[6]);
|
||||
|
||||
cmd = RPTUNIOC_PING;
|
||||
val = (unsigned long)&ping;
|
||||
|
Reference in New Issue
Block a user