9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] ping suicide: sys: trap: divide error  pc=0x00003953c
Date: Mon,  9 Mar 2009 09:24:21 -0400	[thread overview]
Message-ID: <f3daa11047a643fa97d24bf1dd7001e9@quanstro.net> (raw)
In-Reply-To: <0C884056-DAC1-484D-880A-30012762C49C@ar.aichi-u.ac.jp>

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	other threads:[~2009-03-09 13:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09  9:38 ROuNIN
2009-03-09 11:11 ` Kenji Arisawa
2009-03-09 13:24   ` erik quanstrom [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3daa11047a643fa97d24bf1dd7001e9@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).