Bug 13702 - sport/dport set incorrectly for tcp.recvmsg
Summary: sport/dport set incorrectly for tcp.recvmsg
Status: RESOLVED DUPLICATE of bug 15575
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-17 17:15 UTC by David Smith
Modified: 2013-08-05 17:57 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2012-02-17 17:15:41 UTC
The probe alias tcp.receive returns the source and destination port numbers in 2 variables 'sport' and 'dport'.  These values are returned in host (not network) order.

The probe alias tcp.recvmsg returns the source and destination port numbers in 2 variables 'sport' and 'dport'.  These values are returned in network (not host) order.

It seems reasonable to always return information in host order, not network order.

(The fix is easy enough, but it does change behavior, possibly confusing existing scripts.)
Comment 1 Frank Ch. Eigler 2012-02-17 17:26:25 UTC
Sounds like a good change, conditional on %( version %) perhaps.
Comment 2 David Smith 2013-08-05 17:57:07 UTC
Josh fixed this in commit db7b8b2ff97c6f53 for bug #15575

*** This bug has been marked as a duplicate of bug 15575 ***