summaryrefslogtreecommitdiffstats
path: root/tapset/tcp.stp
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-23 09:14:02 +0100
committerTim Moore <timoore@redhat.com>2009-12-23 09:14:02 +0100
commit69ce6c79dbcb2cec2d1245935ef20bf832ffe70a (patch)
tree0b6aea71ef4f3ca5c797494d062819bfba63e7f7 /tapset/tcp.stp
parent72195f6b17c0ed2e508c58bf3cadd5b9dc4e28ac (diff)
parent0ee3adb42f2f6d8bffe177e77a415b3a74f3a777 (diff)
downloadsystemtap-steved-69ce6c79dbcb2cec2d1245935ef20bf832ffe70a.tar.gz
systemtap-steved-69ce6c79dbcb2cec2d1245935ef20bf832ffe70a.tar.xz
systemtap-steved-69ce6c79dbcb2cec2d1245935ef20bf832ffe70a.zip
Merge remote branch 'origin/master'
Diffstat (limited to 'tapset/tcp.stp')
-rw-r--r--tapset/tcp.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/tcp.stp b/tapset/tcp.stp
index 2c5dce7e..094161c9 100644
--- a/tapset/tcp.stp
+++ b/tapset/tcp.stp
@@ -76,7 +76,11 @@ function tcp_ts_get_info_state:long(sock:long)
/* return the TCP destination port for a given sock */
function __tcp_sock_dport:long (sock:long){
+%(kernel_v < "2.6.33" %?
return @cast(sock, "inet_sock")->dport
+%:
+ return @cast(sock, "inet_sock")->inet_dport
+%)
}
/* returns the TCP header for recent (<2.6.21) kernel */
@@ -145,7 +149,11 @@ function __tcp_skb_dport:long (tcphdr){
/* return the TCP source port for a given sock */
function __tcp_sock_sport:long (sock:long){
+%(kernel_v < "2.6.33" %?
return @cast(sock, "inet_sock")->sport
+%:
+ return @cast(sock, "inet_sock")->inet_sport
+%)
}
global sockstate[13], sockstate_init_p