SNMP_Bind_Object_ID( )

NAME

SNMP_Bind_Object_ID( ) - bind an object-identifier variable

SYNOPSIS

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                   */ 
    );

DESCRIPTION

This routine binds an object-identifier 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.

valc and vall are the component count and components, respectively, of the value being bound.

RETURN

0 if successful, otherwise -1.

SEE ALSO

snmpBindLib