summaryrefslogtreecommitdiffstats
path: root/tapset/ip.stp
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-12-22 14:25:00 +0800
committerWenji Huang <wenji.huang@oracle.com>2009-12-22 14:54:20 +0800
commit3bd556fd59f403d962ea9a203c46451332b0ee46 (patch)
treef9c021608520afb89caac421af328076d3c46cff /tapset/ip.stp
parentd5d6f6f18b4ed3e2cd02b6a6a0740938582df89b (diff)
downloadsystemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.tar.gz
systemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.tar.xz
systemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.zip
Update tapset related to struct inet_sock for 2.6.33
* tapset/inet_sock.stp : Add prefix "inet_" to field. * tapset/ip.stp : Ditto. * tapset/tcp.stp : Ditto. * tapset/tcpmib.stp : Ditto.
Diffstat (limited to 'tapset/ip.stp')
-rw-r--r--tapset/ip.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/ip.stp b/tapset/ip.stp
index 299d88d2..ec17b7c0 100644
--- a/tapset/ip.stp
+++ b/tapset/ip.stp
@@ -26,13 +26,21 @@ function ip_ntop:string (addr:long)
/* return the source IP address for a given sock */
function __ip_sock_saddr:long (sock:long)
{
+%(kernel_v < "2.6.33" %?
return @cast(sock, "inet_sock")->saddr
+%:
+ return @cast(sock, "inet_sock")->inet_saddr
+%)
}
/* return the destination IP address for a given sock */
function __ip_sock_daddr:long (sock:long)
{
+%(kernel_v < "2.6.33" %?
return @cast(sock, "inet_sock")->daddr
+%:
+ return @cast(sock, "inet_sock")->inet_daddr
+%)
}
/* Get the IP header for recent (> 2.6.21) kernels */