From 7ab6b3a96e0cce10a1ed3f694fe857fafd1454c8 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 4 Jun 2010 18:23:24 -0700 Subject: [PATCH] Tweak the ipmib update for 2.6.35 * tapset/ipmib.stp (ipmib.InNoRoutes, ipmib.InAddrErrors): Now using probe sufficiency instead of version checks. --- tapset/ipmib.stp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tapset/ipmib.stp b/tapset/ipmib.stp index 5003f6934..aed40b9f3 100644 --- a/tapset/ipmib.stp +++ b/tapset/ipmib.stp @@ -221,11 +221,8 @@ probe ipmib.InReceives=kernel.function("ip_rcv") * MIB: IPSTATS_MIB_INNOROUTES * */ -%( kernel_v >= "2.6.35" %? -probe ipmib.InNoRoutes=kernel.function("ip_route_input_common").return -%: -probe ipmib.InNoRoutes=kernel.function("ip_route_input").return -%) +probe ipmib.InNoRoutes=kernel.function("ip_route_input_common").return!, + kernel.function("ip_route_input").return { skb = $skb; op = 1; @@ -244,11 +241,8 @@ probe ipmib.InNoRoutes=kernel.function("ip_route_input").return * MIB: IPSTATS_MIB_INADDRERRORS * */ -%( kernel_v >= "2.6.35" %? -probe ipmib.InNoRoutes=kernel.function("ip_route_input_common").return -%: -probe ipmib.InAddrErrors=kernel.function("ip_route_input").return -%) +probe ipmib.InAddrErrors=kernel.function("ip_route_input_common").return!, + kernel.function("ip_route_input").return { skb = $skb; op = 1; -- 2.43.5