Lines Matching defs:oid

63  * The .iso.org.dod oid that has to be prepended to every OID when requesting
190 * Walk through the file list and import string<->oid mappings from each file.
1002 snmp_parse_suboid(char *str, struct asn_oid *oid)
1019 if (snmp_suboid_append(oid, suboid) < 0)
1028 snmp_int2asn_oid(char *str, struct asn_oid *oid)
1044 if (snmp_suboid_append(oid, (asn_subid_t) v) < 0)
1053 struct asn_oid *oid)
1068 if (snmp_suboid_append(oid, (asn_subid_t) obj.val.var.len) < 0)
1078 asn_append_oid(oid, &(obj.val.var));
1083 snmp_ip2asn_oid(char *str, struct asn_oid *oid)
1097 if (snmp_suboid_append(oid, (asn_subid_t) v) < 0)
1107 snmp_uint2asn_oid(char *str, struct asn_oid *oid)
1123 if (snmp_suboid_append(oid, (asn_subid_t) v) < 0)
1130 snmp_cnt64_2asn_oid(char *str, struct asn_oid *oid)
1147 if (snmp_suboid_append(oid, (asn_subid_t) (v & 0xffffffff)) < 0)
1150 if (snmp_suboid_append(oid, (asn_subid_t) (v >> 32)) < 0)
1267 * If all is ok - return the length of the oid.
1297 warnx("Invalid oid string - %s", argv);
1378 snmp_object_remove(struct snmp_toolinfo *snmptoolctx, struct asn_oid *oid)
1389 if (asn_compare_oid(&(temp->val.var), oid) == 0)
1661 struct asn_oid *oid)
1666 if ((s = malloc(oid->subs[0] + 1)) == NULL)
1669 for (i = 0; i < oid->subs[0]; i++)
1670 s[i] = (u_char) (oid->subs[i + 1]);
1672 snmp_output_octetstring(snmptoolctx, tc, oid->subs[0], s);
1681 snmp_output_oid_value(struct snmp_toolinfo *snmptoolctx, struct asn_oid *oid)
1691 asn_append_oid(&(obj.val.var), oid);
1700 (void) asn_oid2str_r(oid, oid_string);
1704 (void) asn_oid2str_r(oid, oid_string);
1804 snmp_output_oid_value(snmptoolctx, &(val->v.oid));
1885 struct asn_oid *oid)
1892 if (oid->len < bytes)
1896 asn_append_oid(&temp, oid);
1945 if (oid->len < 2)
1963 struct asn_oid oid;
1976 memset(&oid, 0, sizeof(struct asn_oid));
1979 asn_slice_oid(&oid, &(o->val.var), (o->info->table_idx->var.len + len),
1988 if ((i = snmp_output_index(snmptoolctx, temp, &oid)) < 0)
1991 memset(&oid, 0, sizeof(struct asn_oid));
1992 asn_slice_oid(&oid, &(o->val.var),