Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366159 - net-analyzer/hping: Patch to make hping's traceroute mode increment TTL after N retries
Summary: net-analyzer/hping: Patch to make hping's traceroute mode increment TTL after...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Netmon Herd
URL: http://wiki.hping.org/50
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2011-05-06 02:01 UTC by Hank Leininger
Modified: 2014-07-12 13:53 UTC (History)
0 users

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


Attachments
ebuild update to apply the tr-try-per-ttl patch. (hping-3-ebuild-tr-try-per-ttl.patch,470 bytes, patch)
2011-05-06 02:02 UTC, Hank Leininger
Details | Diff
Add an hping option to increment the TTL after a certain number of tries in traceroute mode. (hping-3_pre20051105-tr-try-per-ttl.patch,4.63 KB, patch)
2011-05-06 02:04 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.