<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>function::ipmib_filter_key</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="SystemTap Tapset Reference Manual"><link rel="up" href="snmp.stp.html" title="Chapter 15. SNMP Information Tapset"><link rel="prev" href="snmp.stp.html" title="Chapter 15. SNMP Information Tapset"><link rel="next" href="API-ipmib-get-proto.html" title="function::ipmib_get_proto"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">function::ipmib_filter_key</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="snmp.stp.html">Prev</a> </td><th width="60%" align="center">Chapter 15. SNMP Information Tapset</th><td width="20%" align="right"> <a accesskey="n" href="API-ipmib-get-proto.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ipmib-filter-key"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>function::ipmib_filter_key — Default filter function for ipmib.* probes </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> ipmib_filter_key:long(skb:long,op:long,SourceIsLocal:long) </pre></div><div class="refsect1"><a name="idp147235628"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>skb</code></em></span></dt><dd><p> pointer to the struct sk_buff </p></dd><dt><span class="term"><em class="parameter"><code>op</code></em></span></dt><dd><p> value to be counted if <em class="parameter"><code>skb</code></em> passes the filter </p></dd><dt><span class="term"><em class="parameter"><code>SourceIsLocal</code></em></span></dt><dd><p> 1 is local operation and 0 is non-local operation </p></dd></dl></div></div><div class="refsect1"><a name="idp147239692"></a><h2>Description</h2><p> This function is a default filter function. The user can replace this function with their own. The user-supplied filter function returns an index key based on the values in <em class="parameter"><code>skb</code></em>. A return value of 0 means this particular <em class="parameter"><code>skb</code></em> should be not be counted. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="snmp.stp.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="snmp.stp.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ipmib-get-proto.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 15. SNMP Information Tapset </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">function::ipmib_get_proto</span></td></tr></table></div></body></html>