SNMP_Bind_Unsigned_Integer( )

NAME

SNMP_Bind_Unsigned_Integer( ) - bind an unsigned-integer variable

SYNOPSIS

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

DESCRIPTION

This routine binds an unsigned-integer variable in the variable-binding list of an SNMP packet structure.

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.

typeFlags is one of the following manifest constants: VT_COUNTER, VT_GAUGE or VT_TIMETICKS.

value is the unsigned-integer value to be bound.

Macro forms of this procedure may be more convenient: SNMP_Bind_Gauge( ), SNMP_Bind_Timeticks( ), and SNMP_Bind_Counter( ).

RETURNS

0 if successful, otherwise -1.

SEE ALSO

snmpBindLib