Skip to content

Conversation

@bublover
Copy link

It's convenient to ping for times.
Usage:
ping host [times]
For example: ping 192.168.1.1 10, this will trigger ping for 10 times.

Signed-off-by: Bub Wei [email protected]

It's convenient to ping for times.
Usage:
ping host [times]
For example: ping 192.168.1.1 10, this will trigger ping for 10 times.

Signed-off-by: Bub Wei <[email protected]>
@zephyrbot
Copy link

Found the following issues, please fix and resubmit:

Gitlint issues

1: UC3 Title does not follow [subsystem]: [subject] (and should not start with literal subsys:): "subsys: net: ip: Support ping times"

PR_WARNING("Cannot send IPv6 ping\n");
return -ENOEXEC;
}
if (argv[2]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if argv[i] are set to NULL by default, if not, we need check argc as well.
if ((argc > 2) && argv[2])

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @easonxiang.
Just refer to argv [1] above.

Well.We might follow another PR Jukkar memtioned.

@jukkar
Copy link
Member

jukkar commented Apr 10, 2019

Please check #14024 which is providing already lot of improvements for ping command.

@bublover
Copy link
Author

Please check #14024 which is providing already lot of improvements for ping command.

Sure, it looks nice.

@bublover bublover closed this Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants