Lines Matching refs:val_len
265 int val_len = vars->val_len; in php_snmp_getvalue() local
275 if (val_len > 512*1024) { in php_snmp_getvalue()
280 val_len *= 2; in php_snmp_getvalue()
286 dbuf = (char *)erealloc(dbuf, val_len + 1); in php_snmp_getvalue()
288 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
292 buflen = val_len; in php_snmp_getvalue()
295 if((valueretrieval & SNMP_VALUE_PLAIN) && val_len > buflen){ in php_snmp_getvalue()
296 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
298 buflen = val_len; in php_snmp_getvalue()
305 ZVAL_STRINGL(&val, (char *)vars->val.bitstring, vars->val_len); in php_snmp_getvalue()
310 ZVAL_STRINGL(&val, (char *)vars->val.string, vars->val_len); in php_snmp_getvalue()
318 snprint_objid(buf, buflen, vars->val.objid, vars->val_len / sizeof(oid)); in php_snmp_getvalue()