Home
last modified time | relevance | path

Searched refs:npackets (Results 1 – 3 of 3) sorted by relevance

/external/ping/
Dping_common.h87 extern long npackets; /* max packets to transmit */
160 if (npackets && ntransmitted >= npackets && !deadline) in schedule_exit()
Dping_common.c18 long npackets; /* max packets to transmit */ variable
108 npackets = atoi(optarg); in common_options()
109 if (npackets <= 0) { in common_options()
289 if (exiting || (npackets && ntransmitted >= npackets && !deadline)) in pinger()
524 if (npackets && nreceived + nerrors >= npackets) in main_loop()
829 exit(!nreceived || (deadline && nreceived < npackets)); in finish()
/external/ping6/
Dping6.c241 long npackets; /* max packets to transmit */ variable
441 npackets = strtol(optarg, &e, 10); in main()
442 if (npackets <= 0 || *optarg == '\0' || *e != '\0') in main()
1167 if (npackets && nreceived >= npackets) in main()
1261 if (npackets && ntransmitted >= npackets) in pinger()