Home
last modified time | relevance | path

Searched refs:nreceived (Results 1 – 4 of 4) sorted by relevance

/freebsd/sbin/ping/
H A Dmain.c70 long nreceived; /* # of packets we got back */ variable
202 _exit(nreceived ? 0 : 2); in onsignal()
220 fprintf(stream, "%ld packets received, ", nreceived); in pr_summary()
224 if (nreceived > ntransmitted) in pr_summary()
228 ((((double)ntransmitted - nreceived) * 100.0) / in pr_summary()
234 if (nreceived && timing) { in pr_summary()
236 double num = nreceived + nrepeats; in pr_summary()
H A Dmain.h59 extern long nreceived; /* # of packets we got back */
H A Dping.c945 if ((options & F_ONCE && nreceived) || in ping()
946 (npackets && nreceived >= npackets)) in ping()
972 if (nreceived) { in ping()
983 if (ntransmitted - nreceived - 1 > nmissedmax) { in ping()
984 nmissedmax = ntransmitted - nreceived - 1; in ping()
992 exit(nreceived ? 0 : 2); in ping()
1150 ++nreceived; in pr_pack()
1188 --nreceived; in pr_pack()
H A Dping6.c1209 if (((options & F_ONCE) != 0 && nreceived > 0) || in ping6()
1210 (npackets > 0 && nreceived >= npackets)) in ping6()
1227 if (nreceived) { in ping6()
1238 if (ntransmitted - nreceived - 1 > nmissedmax) { in ping6()
1239 nmissedmax = ntransmitted - nreceived - 1; in ping6()
1255 if (nreceived > 0) in ping6()
1582 ++nreceived; in pr_pack()
1600 --nreceived; in pr_pack()
1652 ++nreceived; in pr_pack()
1655 --nreceived; in pr_pack()