summaryrefslogtreecommitdiffstats
path: root/tapset/inet_sock.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/inet_sock.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/inet_sock.stp')
-rw-r--r--tapset/inet_sock.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/inet_sock.stp b/tapset/inet_sock.stp
index 33de9775..3962f5a1 100644
--- a/tapset/inet_sock.stp
+++ b/tapset/inet_sock.stp
@@ -16,7 +16,11 @@ function inet_get_local_port:long(sock:long)
%(kernel_v < "2.6.11" %?
port = @cast(sock, "inet_sock", "kernel")->inet->num;
%:
+%(kernel_v < "2.6.33" %?
port = @cast(sock, "inet_sock", "kernel")->num;
+%:
+ port = @cast(sock, "inet_sock", "kernel")->inet_num;
+%)
%)
return port;
}
@@ -27,7 +31,11 @@ function inet_get_ip_source:string(sock:long)
%(kernel_v < "2.6.11" %?
daddr = @cast(sock, "inet_sock", "kernel")->inet->daddr;
%:
+%(kernel_v < "2.6.33" %?
daddr = @cast(sock, "inet_sock", "kernel")->daddr;
+%:
+ daddr = @cast(sock, "inet_sock", "kernel")->inet_daddr;
+%)
%)
return daddr_to_string(daddr);
}