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 */ );
This routine binds an IP address variable in the variable-binding list of an SNMP packet structure
Parameter pktp references the packet structure.
index is a zero-based index indicating which variable-binding entry is to be used.
compc and compl are the component count and components, respectively, of the object identifier of the variable being bound.
pIpAddr is a pointer to a four-byte area containing the IP address to be bound.
The four bytes contain the network address in standard TCP/IP network-byte order.