Home
last modified time | relevance | path

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

/minix/sbin/ping/
H A Dping.c185 static int npackets; /* total packets to send */ variable
294 npackets = strtol(optarg, &p, 0); in main()
295 if (*p != '\0' || npackets <= 0) in main()
443 if (npackets != 0) { in main()
444 npackets += preload; in main()
446 npackets = INT_MAX; in main()
717 if (ntransmitted < npackets && d_last > 0) { in doit()
771 } while (nreceived < npackets in doit()
1418 if (npackets > ntransmitted) /* let the normal limit work */ in prefinish()
1419 npackets = ntransmitted; in prefinish()
/minix/sbin/ping6/
H A Dping6.c228 static long npackets; /* max packets to transmit */ variable
405 npackets = strtol(optarg, &e, 10); in main()
406 if (npackets <= 0 || *optarg == '\0' || *e != '\0') in main()
1145 if (npackets && nreceived >= npackets) in main()
1241 if (npackets && ntransmitted >= npackets) in pinger()