lkml.org 
[lkml]   [1996]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Traceroute is repaired.

>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) {
\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.023 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site