snmp.refentries.toc56.html

来自「vxworks相关论文」· HTML 代码 · 共 94 行

HTML
94
字号
<!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">oid_to_ip</i>(&nbsp;)     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.TOC55.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC57.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="84286"> <i class="i">oid_to_ip</i>(&nbsp;) </a></i></h2></font><h4 class="SH"><a name="84287"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="84288"><div class="aX"><b class="routine"><i class="routine">oid_to_ip</i></b><b>(&nbsp;)</b>     -     convert an object identifier to an IP address </div></a></dl></dl><h4 class="SH"><a name="84289"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="84290">int oid_to_ip &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;count,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* length of ip address components&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;OIDC_T *&nbsp;&nbsp;&nbsp;&nbsp; object_id,&nbsp;&nbsp;/* pointer to ip address components */ &nbsp;&nbsp;&nbsp;&nbsp;UINT_32_T *&nbsp;&nbsp;addr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* pointer to ip address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;);</a></b></pre></dl></dl><h4 class="SH"><a name="84296"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84297"> </a>This routine converts an IP address encoded in the instance section of an object identifier to an IP address. The parameter <i class="i">count</i> contains the number of octets that corresponds to the IP address in the object identifier. This is usually 4, but may be less, in which case this routine fills the rest of the IP-address portion with zeroes. The routine puts the IP address in <i class="i">addr</i>.</p></dl></dl><h4 class="SH"><a name="84298"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84299"> </a>0 if successful, otherwise 1. If the instance contains a component that is larger than is legal for an IP address (greater than 255), the routine returns 1. </p></dl></dl><h4 class="SH"><a name="84300"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84301"> </a><b>snmpAuxLib</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.TOC55.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="snmp.refEntries.TOC57.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 + =
减小字号Ctrl + -
显示快捷键?