summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
diff options
context:
space:
mode:
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;