om_ntrans = $clnt->cl_metrics->om_ntrans
om_bytes_sent = $clnt->cl_metrics->om_bytes_sent
om_bytes_recv = $clnt->cl_metrics->om_bytes_recv
- om_queue = $clnt->cl_metrics->om_queue
- om_rtt = $clnt->cl_metrics->om_rtt
- om_execute = $clnt->cl_metrics->om_execute
+ if (@defined($clnt->cl_metrics->om_queue->tv64)) {
+ om_queue = $clnt->cl_metrics->om_queue->tv64
+ om_rtt = $clnt->cl_metrics->om_rtt->tv64
+ om_execute = $clnt->cl_metrics->om_execute->tv64
+ }
+ else
+ {
+ om_queue = $clnt->cl_metrics->om_queue
+ om_rtt = $clnt->cl_metrics->om_rtt
+ om_execute = $clnt->cl_metrics->om_execute
+ }
}
else {
om_ops = -1
struct rtable *rt;
struct sk_buff *skb = (struct sk_buff *)(long)THIS->skb;
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
+ rt = (struct rtable *)kread(&(skb->_skb_refdst));
+ #else
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
rt = (struct rtable *)kread(&(skb->_skb_dst));
#else
rt = (struct rtable *)kread(&(skb->rtable));
#endif
#endif
+ #endif
if ( rt )
THIS->__retvalue = kread(&(rt->rt_type));