Lines Matching refs:oid
132 static oid objid_mib[] = {1, 3, 6, 1, 2, 1};
621 snprint_objid(buf, buflen, vars->val.objid, vars->val_len / sizeof(oid)); in php_snmp_getvalue()
710 oid root[MAX_NAME_LEN]; in php_snmp_internal()
727 …har *)root, (char *)(objid_query->vars[0].name), (objid_query->vars[0].name_length) * sizeof(oid)); in php_snmp_internal()
819 …(vars->name_length < rootlen || memcmp(root, vars->name, rootlen * sizeof(oid)))) { /* not part of… in php_snmp_internal()
851 add_assoc_zval(return_value, objid_query->vars[count].oid, snmpval); in php_snmp_internal()
887 … memmove((char *)(objid_query->vars[0].name), (char *)vars->name, vars->name_length * sizeof(oid)); in php_snmp_internal()
968 static int php_snmp_parse_oid(zval *object, int st, struct objid_query *objid_query, zval **oid, zv… in php_snmp_parse_oid() argument
974 if (Z_TYPE_PP(oid) != IS_ARRAY) { in php_snmp_parse_oid()
975 if (Z_ISREF_PP(oid)) { in php_snmp_parse_oid()
976 SEPARATE_ZVAL(oid); in php_snmp_parse_oid()
978 convert_to_string_ex(oid); in php_snmp_parse_oid()
979 } else if (Z_TYPE_PP(oid) == IS_ARRAY) { in php_snmp_parse_oid()
980 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(oid), &pos_oid); in php_snmp_parse_oid()
1005 if (Z_TYPE_PP(oid) == IS_STRING) { in php_snmp_parse_oid()
1012 objid_query->vars[objid_query->count].oid = Z_STRVAL_PP(oid); in php_snmp_parse_oid()
1030 } else if (Z_TYPE_PP(oid) == IS_ARRAY) { /* we got objid array */ in php_snmp_parse_oid()
1031 if (zend_hash_num_elements(Z_ARRVAL_PP(oid)) == 0) { in php_snmp_parse_oid()
1035 …vars = (snmpobjarg *)safe_emalloc(sizeof(snmpobjarg), zend_hash_num_elements(Z_ARRVAL_PP(oid)), 0); in php_snmp_parse_oid()
1042 for ( zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(oid), &pos_oid); in php_snmp_parse_oid()
1043 zend_hash_get_current_data_ex(Z_ARRVAL_PP(oid), (void **) &tmp_oid, &pos_oid) == SUCCESS; in php_snmp_parse_oid()
1044 zend_hash_move_forward_ex(Z_ARRVAL_PP(oid), &pos_oid) ) { in php_snmp_parse_oid()
1047 objid_query->vars[objid_query->count].oid = Z_STRVAL_PP(tmp_oid); in php_snmp_parse_oid()
1096 …if (strlen(objid_query->vars[0].oid)) { /* on a walk, an empty string means top of tree - no error… in php_snmp_parse_oid()
1097 …if (!snmp_parse_oid(objid_query->vars[0].oid, objid_query->vars[0].name, &(objid_query->vars[0].na… in php_snmp_parse_oid()
1098 …S_CC, PHP_SNMP_ERRNO_OID_PARSING_ERROR, "Invalid object identifier: %s", objid_query->vars[0].oid); in php_snmp_parse_oid()
1104 objid_query->vars[0].name_length = sizeof(objid_mib) / sizeof(oid); in php_snmp_parse_oid()
1109 …if (!snmp_parse_oid(objid_query->vars[objid_query->offset].oid, objid_query->vars[objid_query->off… in php_snmp_parse_oid()
1110 …NO_OID_PARSING_ERROR, "Invalid object identifier: %s", objid_query->vars[objid_query->offset].oid); in php_snmp_parse_oid()
1426 zval **oid, **value, **type; in php_snmp() local
1448 …&a4, &a4_len, &a5, &a5_len, &a6, &a6_len, &a7, &a7_len, &oid, &type, &value, &timeout, &retries) =… in php_snmp()
1457 &a4, &a4_len, &a5, &a5_len, &a6, &a6_len, &a7, &a7_len, &oid, &timeout, &retries) == FAILURE) { in php_snmp()
1463 …if (zend_parse_parameters(argc TSRMLS_CC, "ssZZZ|ll", &a1, &a1_len, &a2, &a2_len, &oid, &type, &va… in php_snmp()
1471 …if (zend_parse_parameters(argc TSRMLS_CC, "ssZ|ll", &a1, &a1_len, &a2, &a2_len, &oid, &timeout, &r… in php_snmp()
1478 if (zend_parse_parameters(argc TSRMLS_CC, "ZZZ", &oid, &type, &value) == FAILURE) { in php_snmp()
1482 …if (zend_parse_parameters(argc TSRMLS_CC, "Z|bll", &oid, &suffix_keys, &(objid_query.max_repetitio… in php_snmp()
1489 if (zend_parse_parameters(argc TSRMLS_CC, "Z|b", &oid, &use_orignames) == FAILURE) { in php_snmp()
1498 if (zend_parse_parameters(argc TSRMLS_CC, "Z", &oid) == FAILURE) { in php_snmp()
1504 if (!php_snmp_parse_oid(getThis(), st, &objid_query, oid, type, value TSRMLS_CC)) { in php_snmp()