Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 366159

Summary: net-analyzer/hping: Patch to make hping's traceroute mode increment TTL after N retries
Product: Gentoo Linux Reporter: Hank Leininger <hlein>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED UPSTREAM    
Severity: enhancement Keywords: EBUILD, PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://wiki.hping.org/50
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild update to apply the tr-try-per-ttl patch.
Add an hping option to increment the TTL after a certain number of tries in traceroute mode.

Description Hank Leininger 2011-05-06 02:01:45 UTC
hping's traceroute mode only increments the TTL of the sent packet on successful reception of a reply.  The user has to hit a key (control-Z) to increment the TTL.  So hping will get "stuck" on a particular hop that drops low-TTL packets, rather than progressing past it like traditional traceroute.  This makes it unsuitable for automated, unattended use such as within scripts.

Here is a patch that adds a --tr-try-per-ttl option.  This ought to go upstream, but afaik hping is pretty much abandoned.

Reproducible: Always
Comment 1 Hank Leininger 2011-05-06 02:02:35 UTC
Created attachment 272253 [details, diff]
ebuild update to apply the tr-try-per-ttl patch.
Comment 2 Hank Leininger 2011-05-06 02:04:54 UTC
Created attachment 272255 [details, diff]
Add an hping option to increment the TTL after a certain number of tries in traceroute mode.

Note that this patch was generated on a tree that already had hping-3_pre20051105-allow-when-suid.patch applied to it (see bug #366151), so line numbers may differ if that patch is not accepted.