From owner-freebsd-questions Mon Apr 24 9:19:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id A0A2137BB7B for ; Mon, 24 Apr 2000 09:19:44 -0700 (PDT) (envelope-from rsidd@theory1.physics.iisc.ernet.in) Received: (qmail 1010 invoked by uid 211); 24 Apr 2000 16:19:39 -0000 Date: Mon, 24 Apr 2000 21:49:39 +0530 From: Rahul Siddharthan To: "Jason J. Horton" Cc: questions@FreeBSD.ORG Subject: Re: question about ping(8) Message-ID: <20000424214938.B951@physics.iisc.ernet.in> References: <39046FCE.143CAFC0@intercom.com> <20000424214137.A951@physics.iisc.ernet.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000424214137.A951@physics.iisc.ernet.in>; from rsidd@physics.iisc.ernet.in on Mon, Apr 24, 2000 at 09:41:37PM +0530 X-Operating-System: FreeBSD 3.4-STABLE i386 X-Question: Do you enjoy reading pointless headers? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 64 bytes from 10.10.10.2: icmp_seq=60393 ttl=255 time=0.544 ms > > ^C > > --- 10.10.10.2 ping statistics --- > > 322538 packets transmitted, 322538 packets received, 0% packet loss > > round-trip min/avg/max/stddev = 0.470/0.565/30.742/0.234 ms > > > > Any reason the ping stopped logging at 322538 packets? > > Maybe because you hit ^C? :-) Or if you were asking about the icmp_seq=60393, this is the remainder when you divide 322537 by 65536 (the maximum 16-bit integer). The counter starts from zero, so the number of packets transmitted is one greater. In the source file the number of transmitted packets seems to be counted in a long integer, so that didn't overflow. Rahul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message