- i = sendto( s, outpack, cc, 0, &whereto, sizeof(struct sockaddr) );
-
- if( i < 0 || i != cc ) {
- if( i<0 ) perror("sendto");
- printf("ping: wrote %s %d chars, ret=%d\n",
- hostname, cc, i );
- fflush(stdout);
+ for (n = 0; n < burst; n++) {
+ i = sendto(s, outpack, cc, 0, &whereto, sizeof(whereto));
+
+ if( i < 0 || i != cc ) {
+ if( i<0 ) perror("sendto");
+ printf("ping: wrote %s %d chars, ret=%d\n",
+ hostname, cc, i );
+ fflush(stdout);
+ }