📄 snmp.refentries.toc96.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title><i class="i">snmpdVbRowExtract</i>( ) SNMP Reference </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="snmp.refEntries.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="snmp.refEntries.TOC95.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC97.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h2 class="H1"><i><a name="84732"> <i class="i">snmpdVbRowExtract</i>( ) </a></i></h2></font><h4 class="SH"><a name="84733"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="84734"><div class="aX"><b class="routine"><i class="routine">snmpdVbRowExtract</i></b><b>( )</b> - extract required pieces of a row for a <b>set</b> operation </div></a></dl></dl><h4 class="SH"><a name="84735"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="84736">VB_T * snmpdVbRowExtract ( SNMP_PKT_T * pktp, /* snmp packet */ int start_index, /* starting index */ int compc, /* component count */ OIDC_T * compl, /* component length */ int row_structure_length, /* length of row structure */ struct create_row * row /* row structure */ );</a></b></pre></dl></dl><h4 class="SH"><a name="84745"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84746"> </a>This routine assists in implementing row-creation <b>set</b> operations. It is typically used by the <b>testproc</b> routine for a table. It scans the SNMP packet looking for all the pieces that go together for the purposes of creating a new row in an SNMP table.</p><dd><p class="Body"><a name="84747"> </a>The parameter <i class="i">row</i> describes what this routine is looking for. It is a list of MIB leaf pointers referring to variables in the table in question, and a flag indicating if this variable (<i class="i">column</i>) in the table is required. This routine searches the variable bindings in <i class="i">pktp</i> for a match of the MIB leaf pointer specified in the row array and the instance specified by <i class="i">compc</i> and <i class="i">compl</i>. It links the variable bindings found from the first MIB leaf node in the row array. This first variable binding must be in the packet whether it is marked as needed or not, and is the return value of <b class="routine"><i class="routine">snmpdVbRowExtract</i></b><b>( )</b>.</p><dd><p class="Body"><a name="84748"> </a>If <b class="routine"><i class="routine">snmpdVbRowExtract</i></b><b>( )</b> does not find a matching variable binding and that leaf is flagged <b class="symbol_UC">ROW_FLAG_NEEDED</b> in the row array, the routine returns NULL to indicate an error.</p><dd><p class="Body"><a name="84749"> </a>This routine marks the variable bindings in the resulting list as already tested except for the first entry, which is marked as already set. As a result, the agent only calls the <b>set</b> routine associated with the first MIB leaf in the row array. This <b>set</b> routine should handle creation of the necessary data structures and reading the variable binding list to execute the required <b>set</b> operations. You can force other entries set routines to be called by flagging entries with <b class="symbol_UC">ROW_FLAG_CALL_SET</b>. </p></dl></dl><h4 class="SH"><a name="84750"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84751"> </a>a pointer to the first variable binding if successful, otherwise NULL. </p></dl></dl><h4 class="SH"><a name="84752"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84753"> </a><b>snmpdLib</b> </p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="snmp.refEntries.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="snmp.refEntries.TOC95.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC97.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -