void getproc_got_string ( SNMP_PKT_T * pPkt, /* internal representation of SNMP packet */ VB_T * pVarBind, /* var bind being processed */ ALENGTH_T size, /* size of string in octets */ OCTET_T * data, /* string data */ int dynamicFlg, /* storage type - dynamic or static */ OCTET_T type /* SNMP type of string data */ )
This routine is called from getproc or nextproc when a string is retrieved for a variable binding. The string data is stored in an extended buffer in the variable-binding structure. Tha parameter dynamicFlg indicates the storage type used by the extended buffer; if dynamicFlg is non-zero, then the buffer is assumed to have been allocated dynamically via snmpdMemoryAlloc( ) and will be freed later with snmpdMemoryFree( ). Otherwise, the buffer is assumed to be static.