📄 snmp.refentries.toc66.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">snmpIoCommunityValidate</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.TOC65.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC67.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="84400"> <i class="i">snmpIoCommunityValidate</i>( ) </a></i></h2></font><h4 class="SH"><a name="84401"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="84402"><div class="aX"><b class="routine"><i class="routine">snmpIoCommunityValidate</i></b><b>( )</b> - sample community validation routine </div></a></dl></dl><h4 class="SH"><a name="84403"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="84404">int snmpIoCommunityValidate ( SNMP_PKT_T * pPkt, /* ptr to snmp pkt */ SNMPADDR_T * pRemoteAddr, /* remote address */ SNMPADDR_T * pLocalAddr /* local address */ )</a></b></pre></dl></dl><h4 class="SH"><a name="84410"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84411"> </a>This routine is used to set up the view-index field in the SNMP packet. This product is shipped with defaults such that the "priv"community is allowed to <b>set</b> variables, and the "pub" community is allowed to <b>get</b> variables.</p><dd><p class="Body"><a name="84412"> </a>The agent designer is required to write this function according to the design of the application. </p></dl></dl><h4 class="SH"><a name="84413"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84414"> </a>0 if the community is acceptable, otherwise 1. </p></dl></dl><h4 class="SH"><a name="84415"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84416"> </a><b>snmpIoLib</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.TOC65.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC67.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 + -