• Home
  • Raw
  • Download

Lines Matching refs:oid

42 				     unsigned length, int *oid, int oidsize);
58 const int *oid);
63 static unsigned asn1_size_oid(const int *oid);
161 const int *oid) /* I - OID */ in _cupsSNMPIsOID() argument
170 DEBUG_printf(("4_cupsSNMPIsOID(packet=%p, oid=%p)", packet, oid)); in _cupsSNMPIsOID()
172 if (!packet || !oid) in _cupsSNMPIsOID()
184 i < CUPS_SNMP_MAX_OID && oid[i] >= 0 && packet->object_name[i] >= 0; in _cupsSNMPIsOID()
186 if (oid[i] != packet->object_name[i]) in _cupsSNMPIsOID()
194 i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i])); in _cupsSNMPIsOID()
196 return (i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i]); in _cupsSNMPIsOID()
645 const int *oid) /* I - OID */ in _cupsSNMPWrite() argument
661 fd, address, version, community, request_type, request_id, oid)); in _cupsSNMPWrite()
665 request_type != CUPS_ASN1_GET_NEXT_REQUEST) || request_id < 1 || !oid) in _cupsSNMPWrite()
685 for (i = 0; oid[i] >= 0 && i < (CUPS_SNMP_MAX_OID - 1); i ++) in _cupsSNMPWrite()
686 packet.object_name[i] = oid[i]; in _cupsSNMPWrite()
689 if (oid[i] >= 0) in _cupsSNMPWrite()
734 int oid[CUPS_SNMP_MAX_OID]; /* OID value */ in asn1_debug() local
869 integer = asn1_get_oid(&buffer, bufend, value_length, oid, in asn1_debug()
875 fprintf(stderr, ".%d", oid[i]); in asn1_debug()
1047 packet->object_value.oid, CUPS_SNMP_MAX_OID); in asn1_decode_snmp()
1126 valuelen = asn1_size_oid(packet->object_value.oid); in asn1_encode_snmp()
1212 asn1_set_oid(&bufptr, packet->object_value.oid); in asn1_encode_snmp()
1295 int *oid, /* I - OID buffer */ in asn1_get_oid() argument
1305 oidptr = oid; in asn1_get_oid()
1306 oidend = oid + oidsize - 1; in asn1_get_oid()
1336 return ((int)(oidptr - oid)); in asn1_get_oid()
1526 const int *oid) /* I - OID value */ in asn1_set_oid() argument
1531 asn1_set_length(buffer, asn1_size_oid(oid)); in asn1_set_oid()
1533 if (oid[1] < 0) in asn1_set_oid()
1535 asn1_set_packed(buffer, oid[0] * 40); in asn1_set_oid()
1539 asn1_set_packed(buffer, oid[0] * 40 + oid[1]); in asn1_set_oid()
1541 for (oid += 2; *oid >= 0; oid ++) in asn1_set_oid()
1542 asn1_set_packed(buffer, *oid); in asn1_set_oid()
1625 asn1_size_oid(const int *oid) /* I - OID value */ in asn1_size_oid() argument
1630 if (oid[1] < 0) in asn1_size_oid()
1631 return (asn1_size_packed(oid[0] * 40)); in asn1_size_oid()
1633 for (length = asn1_size_packed(oid[0] * 40 + oid[1]), oid += 2; in asn1_size_oid()
1634 *oid >= 0; in asn1_size_oid()
1635 oid ++) in asn1_size_oid()
1636 length += asn1_size_packed(*oid); in asn1_size_oid()