From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Mon, 9 Mar 2009 09:24:21 -0400 To: 9fans@9fans.net In-Reply-To: <0C884056-DAC1-484D-880A-30012762C49C@ar.aichi-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ping suicide: sys: trap: divide error pc=0x00003953c Topicbox-Message-UUID: b682d712-ead4-11e9-9d60-3106f5b1d025 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