since it doesn't make sense to both send packets
as fast as possible and to delay randomly between
packets,  i think this case is just disallowed.

/n/sources/plan9//sys/src/cmd/ip/ping.c:532,537 - ping.c:532,541
                break;
        } ARGEND;
  
+       if(flood && rint){
+               fprint(2, "-f and -r are not compatable\n");
+               usage();
+       }
        if(msglen < proto->iphdrsz + ICMP_HDRSIZE)
                msglen = proto->iphdrsz + ICMP_HDRSIZE;
        if(msglen < 64)

and

/n/sources/plan9//sys/man/8/ping:83,89 - ping:83,91
  adds the IP source and destination addresses to each report.
  .TP
  .B f
- send messages as fast as possible (flood).
+ send messages as fast as possible (flood). This flag
+ is not compatable with
+ .BR -r .
  .TP
  .B i
  sets the time between messages
/n/sources/plan9//sys/man/8/ping:104,110 - ping:106,114
  .TP
  .B r
  randomizes the delay with a minimum extra delay of 0 ms and a
- maximum extra delay of the selected interval.
+ maximum extra delay of the selected interval. This flag
+ is not compatable with
+ .BR -f .
  .TP
  .B s
  sets the length of the message to be

Reply via email to