📄 snmpauxlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/snmpAuxLib.html - generated by refgen from snmpAuxLib.c --> <title> snmpAuxLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>snmpAuxLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>snmpAuxLib</strong> - utility routines for object identifiers </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./snmpAuxLib.html#ip_to_rlist">ip_to_rlist</a></i>( )</b> - convert an IP address to an array of OID components<br><b><i><a href="./snmpAuxLib.html#oidcmp">oidcmp</a></i>( )</b> - compare two object identifiers<br><b><i><a href="./snmpAuxLib.html#oidcmp2">oidcmp2</a></i>( )</b> - compare two object identifiers<br><b><i><a href="./snmpAuxLib.html#oid_to_ip">oid_to_ip</a></i>( )</b> - convert an object identifier to an IP address<br><p></blockquote><h4>DESCRIPTION </h4><blockquote><p><p>This module defines the routines used to manipulate object identifiers.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>snmpdefs.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpAuxLib.html#top">snmpAuxLib</a></b><hr><a name="ip_to_rlist"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ip_to_rlist</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ip_to_rlist</i>( )</strong> - convert an IP address to an array of OID components</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ip_to_rlist ( UINT_32_T ip_address, /* ip address */ OIDC_T * object_id /* pointer to object identifier */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine uses an IP address to fill an array of values (of type<b>long</b>) with the byte components of the IP address. The returnvalue is the number of components filled, always 4.<p></blockquote><h4>RETURNS</h4><blockquote><p>4, always.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpAuxLib.html#top">snmpAuxLib</a></b><hr><a name="oidcmp"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>oidcmp</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>oidcmp</i>( )</strong> - compare two object identifiers</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int oidcmp ( int length_1, /* length of first object identifier */ OIDC_T * oid_1, /* pointer to first object identifier */ int length_2, /* length of second object identifier */ OIDC_T * oid_2 /* pointer to second object identifier */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine compares two object-identifiers. It returns 1 if theOIDs are the same and 0 if not. The two object idenifiers may be ofdifferent lengths.<p></blockquote><h4>RETURNS</h4><blockquote><p>1 if the OIDs are equal, otherwise 0.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpAuxLib.html#top">snmpAuxLib</a></b><hr><a name="oidcmp2"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>oidcmp2</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>oidcmp2</i>( )</strong> - compare two object identifiers</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int oidcmp2 ( int length_1, /* length of first object identifier */ OIDC_T * oid_1, /* pointer to first object identifier */ int length_2, /* length of second object identifier */ OIDC_T * oid_2 /* pointer to second object identifier */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine compares two object identifiers. <p></blockquote><h4>RETURNS</h4><blockquote><p>-1 if <i>oid_1</i> is less than <i>oid_2</i>,0 if <i>oid_1</i> is equal to <i>oid_2</i>, and 1 if <i>oid_1</i> is greater than <i>oid_2</i>.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpAuxLib.html#top">snmpAuxLib</a></b><hr><a name="oid_to_ip"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>oid_to_ip</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>oid_to_ip</i>( )</strong> - convert an object identifier to an IP address</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int oid_to_ip ( int count, /* length of ip address components */ OIDC_T * object_id, /* pointer to ip address components */ UINT_32_T * addr /* pointer to ip address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine converts an IP address encoded in the instance sectionof an object identifier to an IP address. The parameter <i>count</i>contains the number of octets that corresponds to the IP address inthe object identifier. This is usually 4, but may be less, in whichcase this routine fills the rest of the IP-address portion with zeroes.<p>The routine puts the IP address in <i>addr</i> and returns 0 ifsuccessful. If the instance contains a component that is largerthan is legal for an IP address (greater than 255), the routinereturns 1.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 on success, otherwise 1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpAuxLib.html#top">snmpAuxLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -