Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45977 - [patch] libnet 1.1.2 (icmp redirect)
Summary: [patch] libnet 1.1.2 (icmp redirect)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-28 05:24 UTC by Alberto Ornaghi
Modified: 2004-04-01 23:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the patch for the icmp_redirect error (icmp_redir.patch,1.29 KB, text/plain)
2004-03-28 05:25 UTC, Alberto Ornaghi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Ornaghi 2004-03-28 05:24:28 UTC
is it possible to create libnet-1.1.2-r1 with a patch that fixes an error in the code for icmp_redirect ?

if you test the sample code icmp_redir in the sample directory, you will get this error :

Can't build ICMP header: libnet_pblock_append(): memcpy would overflow buffer 

the patch fixes this.
I don't know if this is a standard procedure for gentoo to fix the source code... but I'm trying to push it anyway...

Reproducible: Always
Steps to Reproduce:
1. make the libnet samples
2. execute icmp_redirect -s 1.1.1.1 -d 2.2.2.2 -g 3.3.3.3
3.

Actual Results:  
Can't build ICMP header: libnet_pblock_append(): memcpy would overflow buffer 

Expected Results:  
Wrote 70 byte ICMP packet; check the wire.
Comment 1 Alberto Ornaghi 2004-03-28 05:25:05 UTC
Created attachment 28213 [details]
the patch for the icmp_redirect error
Comment 2 Alberto Ornaghi 2004-03-29 13:08:54 UTC
the patch has been applied to he official tree and released as 1.1.2.1.

please consider to create a new ebuild for 1.1.2.1 version.

thanks again.

bye
Comment 3 Alberto Ornaghi 2004-03-30 23:59:35 UTC
closing this bug.  a new version is available with the patch included. I've filed a new bug for the request of a new ebuild.
Comment 4 SpanKY gentoo-dev 2004-04-01 16:27:00 UTC
right, when you first mentioned the new version i checked and it wasnt released yet ;)
Comment 5 Alberto Ornaghi 2004-04-01 23:31:38 UTC
actually, the version was released, but because a problem with a backup/restore the page was restored in a different directory :)  now it's up again.

bye