From 189559623dcda793b1ae9ade54299f5c7a775b76 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 8 Feb 2010 10:53:21 +0800 Subject: Define empty function for tcpmib test --- testsuite/buildok/tcpmib-all-probes.stp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/buildok/tcpmib-all-probes.stp b/testsuite/buildok/tcpmib-all-probes.stp index 490f6da4..0d7c4c00 100755 --- a/testsuite/buildok/tcpmib-all-probes.stp +++ b/testsuite/buildok/tcpmib-all-probes.stp @@ -11,6 +11,14 @@ function tcpmib_filter_key:long (sk:long, op:long) { return op } +// same as above one +// but it's better to move function definition from example +// to tapset +function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) { + if ( !skb ) return 0 + return op +} + probe begin{ print(tcpmib_get_state(0) + tcpmib_local_addr(0) + -- cgit