Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84584 - net-analyzer/tcptraceroute doesn't resolve the port correctly for display
Summary: net-analyzer/tcptraceroute doesn't resolve the port correctly for display
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-08 19:38 UTC by Dmitry Karasik
Modified: 2005-05-02 03:09 UTC (History)
0 users

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


Attachments
proposed fix (tcptraceroute-1.5-port-fix.diff,608 bytes, patch)
2005-03-08 19:39 UTC, Dmitry Karasik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Karasik 2005-03-08 19:38:40 UTC
tcptraceroute does not properly display the destination port it is querying on a little endian system due to a missing htons() call.

Reproducible: Always
Steps to Reproduce:
1.tcptraceroute <ip> 5376
2.tcptraceroute <ip> 21
3.

Actual Results:  
in the first instance it incorrectly prints:
Tracing the path to <ip> on TCP port 5376 (ftp), 30 hops max
in the second it incorrectly prints:
Tracing the path to <ip> on TCP port 21, 30 hops max


Expected Results:  
outputed:
Tracing the path to <ip> on TCP port 5376, 30 hops max

Tracing the path to <ip> on TCP port 21 (ftp), 30 hops max
Comment 1 Dmitry Karasik 2005-03-08 19:39:31 UTC
Created attachment 52985 [details, diff]
proposed fix
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2005-05-02 03:06:27 UTC
I can see your patch is included in beta6, I'll rev-bump this package
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2005-05-02 03:09:32 UTC
Seems it is already in CVS since March, closing bug