⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-agent9.html

📁 vxworks相关论文
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    The WindNet SNMPv1/v2c Agent   </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="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent8.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent10.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="83916">4.9  &nbsp;&nbsp;View Tables</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83917"> </a>In SNMPv1 the concept of views was described, but no mechanism was specified to implement a view. In the party model version of SNMPv2, a simple and powerful method, the <i class="i">view table</i>, was specified in RFC 1445.</p><dd><p class="Body"><a name="83921"> </a>In the current WindNet implementation, the notion of a view table is provided to the agent designer to allow for the same compatibility as in the SNMPv2 specifications. These facilities are made available to the user without the complexities of SNMPv2 party tables. For more information, see RFCs 1445 and 1447.</p><dd><p class="Body"><a name="83922"> </a>The view index for the RFC 1445 view scheme is chosen by the user-defined routine <b class="routine"><i class="routine">snmpIoCommunityValidate</i></b><b>(&nbsp;)</b>. The routine should assign an integer to the <i class="textVariable">view_index</i> field of the <b class="symbol_UC">SNMP_PKT_T</b> structure. This number is the index in the view table of the view to use. The view table should already have been populated, probably at initialization time.</p><dd><p class="Body"><a name="83923"> </a>The process of selecting a view index is normally based on the community string in the input packet. It is entirely up to the user to select the policy used to do this mapping from the community strings to the view indices. The agent does not require any configuration files for this purpose, though the user is free to implement such a scheme if desired.</p><dd><p class="Body"><a name="84482"> </a>For example, you might have an initialization file containing view table and community information and used to create the view tables and any associated data structures to implement the community string to view index mapping. </p><dd><p class="Body"><a name="83925"> </a>The default implementation provided in <b class="library">snmpIoLib</b> uses hardcoded items.</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="c-agent.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-agent8.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-agent10.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 + -