mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 13:45:09 +00:00
Modifying the ping command
1、Round trip times in the ping command range from millisecond to subtle 2、Add statistics on RTT related min/avg/Max/mdev in ping program 3、The ping command supports ctrl+c interruption operations Signed-off-by: xuewenliang <xuewenliang@xiaomi.com>
This commit is contained in:
parent
2796187bdf
commit
c69ec94d13
6 changed files with 179 additions and 53 deletions
|
|
@ -79,7 +79,7 @@ struct ping_info_s
|
|||
struct ping_result_s
|
||||
{
|
||||
int code; /* Notice code ICMP_I/E/W_XXX */
|
||||
int extra; /* Extra information for code */
|
||||
long extra; /* Extra information for code */
|
||||
struct in_addr dest; /* Target address to ping */
|
||||
uint16_t nrequests; /* Number of ICMP ECHO requests sent */
|
||||
uint16_t nreplies; /* Number of matching ICMP ECHO replies received */
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ struct ping6_info_s
|
|||
struct ping6_result_s
|
||||
{
|
||||
int code; /* Notice code ICMPv6_I/E/W_XXX */
|
||||
int extra; /* Extra information for code */
|
||||
long extra; /* Extra information for code */
|
||||
struct in6_addr dest; /* Target address to ping */
|
||||
uint16_t nrequests; /* Number of ICMP ECHO requests sent */
|
||||
uint16_t nreplies; /* Number of matching ICMP ECHO replies received */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue