Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
To: Xiaozhou Qiu <xq@iol.unh.edu>
Subject: Re: Funky PING messages
Date: 1999/08/17	[thread overview]
Message-ID: <37B925E5.897EA6AC@ife.ee.ethz.ch> (raw)
In-Reply-To: 37B81C9E.BD2E7D09@iol.unh.edu

Xiaozhou Qiu wrote:
> 
> It is a very small bug in ping for Alpha. It assumes the size of struct
> timeval as 8, while it is 16 in Alpha. I just revised it several days
> ago. If interested, please come to the following site to get the updated
> source code and binary and try it.
> ftp://mars.iol.unh.edu/pub/linux/applications/
> 
> Xiaozhou Qiu

Dear Mister Qiu

Please note that your fix for ping introduces new bugs and leaves old
ones intact:

You exchanged 8 for 16 which is as evil as using 8 instead of
sizeof(struct timeval) in the first place (line 711)

In line 596, you exchanged "datalen + 8" with "datalen + sizeof(struct
timeval)", even though the 8 is the size of the ICMP portion and NOT a
timeval

In line 665, the tvsub() call should still give an unaligned trap error

The new redhat rpm removes some but not all bug.
The fix that removes all bugs related to timeval I know of was
contributed to by (IIRC) Helmut Katzengraber and myself and can be found
at
http://www.ife.ee.ethz.ch/~rhomberg/files/ping.c
It is based on netkit 0.11 while redhat ships netkit 0.10

Regards
Alex



  reply	other threads:[~1999-08-17  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-16  4:00 Funky PING messages Oscar Miranda
1999-08-16  4:00 ` Xiaozhou Qiu
1999-08-17  4:00   ` Alex Rhomberg [this message]
1999-08-16  4:00 ` Alex Rhomberg
1999-08-16  4:00 ` Thank you Alex and Xiaozhou for the 411. Long live LINUXAXP ;-) Oscar Miranda
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox