summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-03-04 09:18:47 -0500
committerSteve Dickson <steved@redhat.com>2010-03-04 09:18:47 -0500
commit35f22bd95cea2fb75573a27282f2a5edea84f2d7 (patch)
tree6b582b54990d716c9fb98300a012e80afc47baa1 /tapset/rpc.stp
parent1dba1a69d2a16ce061ebd97269a675ee68002064 (diff)
downloadsystemtap-steved-35f22bd95cea2fb75573a27282f2a5edea84f2d7.tar.gz
systemtap-steved-35f22bd95cea2fb75573a27282f2a5edea84f2d7.tar.xz
systemtap-steved-35f22bd95cea2fb75573a27282f2a5edea84f2d7.zip
Backport recently added probes to RHEL5(U5)
Ensured the recent additions of v4 probes and supporting routines worked or at least don't break with RHEL5 U5 kernel. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tapset/rpc.stp')
-rw-r--r--tapset/rpc.stp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tapset/rpc.stp b/tapset/rpc.stp
index 3e65d0ea..d8f2fadc 100644
--- a/tapset/rpc.stp
+++ b/tapset/rpc.stp
@@ -996,7 +996,12 @@ function addr_from_rqst_str:string(_rqstp:long)
unsigned char *bytes;
if (rqstp) {
- if (rqstp->rq_addr.ss_family == AF_INET) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
+ if (rqstp->rq_addr.ss_family == AF_INET)
+#else
+ if (rqstp->rq_addr.sin_family == AF_INET)
+#endif
+ {
addr = (struct sockaddr_in *) &rqstp->rq_addr;
bytes = (unsigned char *)&addr->sin_addr.s_addr;