Lines Matching refs:val_len
264 int val_len = vars->val_len; in php_snmp_getvalue() local
274 if (val_len > 512*1024) { in php_snmp_getvalue()
279 val_len *= 2; in php_snmp_getvalue()
285 dbuf = (char *)erealloc(dbuf, val_len + 1); in php_snmp_getvalue()
287 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
291 buflen = val_len; in php_snmp_getvalue()
294 if((valueretrieval & SNMP_VALUE_PLAIN) && val_len > buflen){ in php_snmp_getvalue()
295 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
297 buflen = val_len; in php_snmp_getvalue()
304 ZVAL_STRINGL(&val, (char *)vars->val.bitstring, vars->val_len); in php_snmp_getvalue()
309 ZVAL_STRINGL(&val, (char *)vars->val.string, vars->val_len); in php_snmp_getvalue()
317 snprint_objid(buf, buflen, vars->val.objid, vars->val_len / sizeof(oid)); in php_snmp_getvalue()