Re: Traceroute is repaired.

Michael Driscoll (fenris@lightspeed.net)
Fri, 20 Dec 1996 17:16:40 -0800


>I wish i knew what file this patched :>
>
>On Thu, 19 Dec 1996, A.N.Kuznetsov wrote:
>> Hello!
>>
>> Damn. The following patch will repair traceroute.
>> I'm sorry, that finding it out took so long time.
>> By a strange reason, all my kernels up to 2.1.14 had this place correct.
>> Apparently, I made something wrong when patching. Beg pardon.

Try this:

--- linux/net/ipv4/raw.c.dist Thu Dec 12 06:54:24 1996
+++ linux/net/ipv4/raw.c Thu Dec 19 18:40:48 1996
@@ -151,7 +151,7 @@
{
struct rawfakehdr *rfh = (struct rawfakehdr*)p;
int err;
- err = copy_from_user(to, (const unsigned char *)p+offset, fraglen);
+ err = copy_from_user(to, (const unsigned char *)rfh->from+offset, fraglen);
if (err)
return err;
if (offset==0) {