📄 snmpbindlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/snmpBindLib.html - generated by refgen from snmpBindLib.c --> <title> snmpBindLib </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>snmpBindLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>snmpBindLib</strong> - routines for binding values to variables in SNMP packets </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./snmpBindLib.html#SNMP_Bind_Unsigned_Integer">SNMP_Bind_Unsigned_Integer</a></i>( )</b> - bind an unsigned-integer variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_Integer">SNMP_Bind_Integer</a></i>( )</b> - bind an integer variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_IP_Address">SNMP_Bind_IP_Address</a></i>( )</b> - bind an IP address variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_Object_ID">SNMP_Bind_Object_ID</a></i>( )</b> - bind an object-identifier variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_String">SNMP_Bind_String</a></i>( )</b> - bind a string variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_64_Unsigned_Integer">SNMP_Bind_64_Unsigned_Integer</a></i>( )</b> - bind a 64-bit unsigned-integer variable<br><b><i><a href="./snmpBindLib.html#SNMP_Bind_Null">SNMP_Bind_Null</a></i>( )</b> - bind a null-valued variable<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p><p>This module defines the routines used to bind variables to theirrespective values in an SNMP packet.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>snmpdefs.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_Unsigned_Integer"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_Unsigned_Integer</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_Unsigned_Integer</i>( )</strong> - bind an unsigned-integer variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_Unsigned_Integer ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ OCTET_T typeFlags, /* type flags */ UINT_32_T value /* value for varbind */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds an unsigned-integer variable in thevariable-binding list of an SNMP packet structure.<p><i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p><i>typeFlags</i> is one of the following manifest constants:<b>VT_COUNTER</b>, <b>VT_GAUGE</b> or <b>VT_TIMETICKS</b>.<p><i>value</i> is the unsigned-integer value to be bound.<p>Macro forms of this procedure may be more convenient:<b><i>SNMP_Bind_Gauge</i>( )</b>, <b><i>SNMP_Bind_Timeticks</i>( )</b>, and <b><i>SNMP_Bind_Counter</i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_Integer"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_Integer</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_Integer</i>( )</strong> - bind an integer variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_Integer ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ INT_32_T value /* value for varbind */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds an integer variable in the variable-binding listof an SNMP packet structure.<p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p><i>value</i> is the integer value to be bound.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_IP_Address"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_IP_Address</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_IP_Address</i>( )</strong> - bind an IP address variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_IP_Address ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ OCTET_T * pIpAddr /* ip address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds an IP address variable in the variable-binding listof an SNMP packet structure <p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p><i>pIpAddr</i> is a pointer to a four-byte area containing the IP address to be bound.<p>The four bytes contain the network address in standard TCP/IP network-byteorder.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_Object_ID"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_Object_ID</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_Object_ID</i>( )</strong> - bind an object-identifier variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_Object_ID ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ int valc, /* varbind value count */ OIDC_T * vall /* varbind value length */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds an object-identifier variable in the variable-bindinglist of an SNMP packet structure.<p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively,of the object identifier of the variable being bound.<p><i>valc</i> and <i>vall</i> are the component count and components, respectively,of the value being bound.<p></blockquote><h4>RETURN</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_String"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_String</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_String</i>( )</strong> - bind a string variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_String ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ OCTET_T typeFlags, /* type flags */ int leng, /* string length */ OCTET_T * strp, /* pointer to string */ int statflg /* static memory flag */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds an octet-string variable in the variable-binding listof an SNMP packet structure.<p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p><i>typeFlags</i> is one of the following manifest constants: <b>VT_STRING</b> or <b>VT_OPAQUE</b>.<p><i>leng</i> and <i>strp</i> are the length and address, respectively, of thestring to be bound.<p><i>statflg</i> indicates whether the string must be copied or whether it maybe used in its current location. A value of 0 means copy, 1 means "use asis".<p>A macro form of this routine may be more convenient:<b><i>SNMP_Bind_Opaque</i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_64_Unsigned_Integer"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_64_Unsigned_Integer</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_64_Unsigned_Integer</i>( )</strong> - bind a 64-bit unsigned-integer variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_64_Unsigned_Integer ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl, /* component length */ OCTET_T typeFlags, /* type flags */ UINT_32_T high, /* high 32 bits of value */ UINT_32_T low /* low 32 bits of value */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds a 64-bit unsigned-integer variable in thevariable-binding list of an SNMP packet structure.<p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p><i>typeFlags</i> is the manifest constant <b>VT_COUNTER64</b>.<p><i>high</i> and <i>low</i> are the high and low 32-bit sections of the 64-bit value to<br> be bound.<p>A macro form of this procedure may be more convenient:<b><i>SNMP_Bind_Counter64</i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b><hr><a name="SNMP_Bind_Null"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>SNMP_Bind_Null</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>SNMP_Bind_Null</i>( )</strong> - bind a null-valued variable</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int SNMP_Bind_Null ( SNMP_PKT_T * pktp, /* internal representation of snmp packet */ int index, /* index of varbind entry */ int compc, /* component count */ OIDC_T * compl /* component length */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine binds a null-valued variable in the variable-bindinglist of an SNMP packet structure.<p>Parameter <i>pktp</i> references the packet structure.<p><i>index</i> is a zero-based index indicating which variable-bindingentry is to be used.<p><i>compc</i> and <i>compl</i> are the component count and components, respectively, of the object identifier of the variable being bound.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 if successful, otherwise -1.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./snmpBindLib.html#top">snmpBindLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -