Lines Matching refs:oid

114 static oid objid_mib[] = {1, 3, 6, 1, 2, 1};
586 snprint_objid(buf, buflen, vars->val.objid, vars->val_len / sizeof(oid)); in php_snmp_getvalue()
674 oid root[MAX_NAME_LEN]; in php_snmp_internal()
691 …har *)root, (char *)(objid_query->vars[0].name), (objid_query->vars[0].name_length) * sizeof(oid)); in php_snmp_internal()
783 …(vars->name_length < rootlen || memcmp(root, vars->name, rootlen * sizeof(oid)))) { /* not part of… in php_snmp_internal()
815 add_assoc_zval(return_value, objid_query->vars[count].oid, &snmpval); in php_snmp_internal()
849 … memmove((char *)(objid_query->vars[0].name), (char *)vars->name, vars->name_length * sizeof(oid)); in php_snmp_internal()
930 static int php_snmp_parse_oid(zval *object, int st, struct objid_query *objid_query, zval *oid, zva… in php_snmp_parse_oid() argument
936 if (Z_TYPE_P(oid) != IS_ARRAY) { in php_snmp_parse_oid()
937 convert_to_string_ex(oid); in php_snmp_parse_oid()
952 if (Z_TYPE_P(oid) == IS_STRING) { in php_snmp_parse_oid()
954 objid_query->vars[objid_query->count].oid = Z_STRVAL_P(oid); in php_snmp_parse_oid()
972 } else if (Z_TYPE_P(oid) == IS_ARRAY) { /* we got objid array */ in php_snmp_parse_oid()
973 if (zend_hash_num_elements(Z_ARRVAL_P(oid)) == 0) { in php_snmp_parse_oid()
977 …>vars = (snmpobjarg *)safe_emalloc(sizeof(snmpobjarg), zend_hash_num_elements(Z_ARRVAL_P(oid)), 0); in php_snmp_parse_oid()
979 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(oid), tmp_oid) { in php_snmp_parse_oid()
981 objid_query->vars[objid_query->count].oid = Z_STRVAL_P(tmp_oid); in php_snmp_parse_oid()
1044 …if (strlen(objid_query->vars[0].oid)) { /* on a walk, an empty string means top of tree - no error… in php_snmp_parse_oid()
1045 …if (!snmp_parse_oid(objid_query->vars[0].oid, objid_query->vars[0].name, &(objid_query->vars[0].na… in php_snmp_parse_oid()
1046 …ject, PHP_SNMP_ERRNO_OID_PARSING_ERROR, "Invalid object identifier: %s", objid_query->vars[0].oid); in php_snmp_parse_oid()
1052 objid_query->vars[0].name_length = sizeof(objid_mib) / sizeof(oid); in php_snmp_parse_oid()
1057 …if (!snmp_parse_oid(objid_query->vars[objid_query->offset].oid, objid_query->vars[objid_query->off… in php_snmp_parse_oid()
1058 …NO_OID_PARSING_ERROR, "Invalid object identifier: %s", objid_query->vars[objid_query->offset].oid); in php_snmp_parse_oid()
1365 zval *oid, *value, *type; in php_snmp() local
1387 …&a4, &a4_len, &a5, &a5_len, &a6, &a6_len, &a7, &a7_len, &oid, &type, &value, &timeout, &retries) =… in php_snmp()
1396 &a4, &a4_len, &a5, &a5_len, &a6, &a6_len, &a7, &a7_len, &oid, &timeout, &retries) == FAILURE) { in php_snmp()
1402 …if (zend_parse_parameters(argc, "sszzz|ll", &a1, &a1_len, &a2, &a2_len, &oid, &type, &value, &time… in php_snmp()
1410 …if (zend_parse_parameters(argc, "ssz|ll", &a1, &a1_len, &a2, &a2_len, &oid, &timeout, &retries) ==… in php_snmp()
1417 if (zend_parse_parameters(argc, "zzz", &oid, &type, &value) == FAILURE) { in php_snmp()
1421 …if (zend_parse_parameters(argc, "z|bll", &oid, &suffix_keys, &(objid_query.max_repetitions), &(obj… in php_snmp()
1428 if (zend_parse_parameters(argc, "z|b", &oid, &use_orignames) == FAILURE) { in php_snmp()
1437 if (zend_parse_parameters(argc, "z", &oid) == FAILURE) { in php_snmp()
1443 if (!php_snmp_parse_oid(getThis(), st, &objid_query, oid, type, value)) { in php_snmp()