From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20700 invoked by alias); 19 May 2011 17:11:02 -0000 Received: (qmail 20686 invoked by uid 22791); 19 May 2011 17:10:59 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 May 2011 17:10:41 +0000 From: "alfred at riverbed dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/12787] New: __tcp_skb_dport should return value in host order. X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alfred at riverbed dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 19 May 2011 17:11:00 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2011-q2/txt/msg00198.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12787 Summary: __tcp_skb_dport should return value in host order. Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tapsets AssignedTo: systemtap@sourceware.org ReportedBy: alfred@riverbed.com __tcp_skb_dport is inconsistent with __tcp_skb_sport; dport should return value in host order. possible patch: diff --git a/tapset/tcp.stp b/tapset/tcp.stp index 37227e9..2b5cff4 100644 --- a/tapset/tcp.stp +++ b/tapset/tcp.stp @@ -153,7 +153,7 @@ function __tcp_skb_sport:long (tcphdr:long) /* returns TCP destination port for a given sk_buff structure */ function __tcp_skb_dport:long (tcphdr:long){ - return @cast(tcphdr, "tcphdr")->dest + return ntohs(@cast(tcphdr, "tcphdr")->dest) } -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.