Lines Matching refs:it

329 		unsigned int xpos;		/*%< Current position in it */
331 } it;
571 "creating it",
610 * allocated buffer and then convert it into a cooked index.
643 dns_name_init(&j->it.name, NULL);
644 dns_rdata_init(&j->it.rdata);
651 isc_buffer_init(&j->it.source, NULL, 0);
652 isc_buffer_init(&j->it.target, NULL, 0);
653 dns_decompress_init(&j->it.dctx, -1, DNS_DECOMPRESS_NONE);
707 * server receiving the IXFR - it may help reduce the amount of
708 * rdataset merging it has to do.
822 * than '*best_guess', replace '*best_guess' with it.
1160 * it to disk.
1197 j->it.result = ISC_R_FAILURE;
1198 dns_name_invalidate(&j->it.name);
1199 dns_decompress_invalidate(&j->it.dctx);
1206 if (j->it.target.base != NULL)
1207 isc_mem_put(j->mctx, j->it.target.base, j->it.target.length);
1208 if (j->it.source.base != NULL)
1209 isc_mem_put(j->mctx, j->it.source.base, j->it.source.length);
1299 db_serial = j->it.current_serial;
1531 * allocated, and clear it.
1534 * Either b->base is NULL, or it points to b->length bytes of memory
1559 CHECK(journal_find(j, begin_serial, &j->it.bpos));
1560 INSIST(j->it.bpos.serial == begin_serial);
1562 CHECK(journal_find(j, end_serial, &j->it.epos));
1563 INSIST(j->it.epos.serial == end_serial);
1567 j->it.result = result;
1568 return (j->it.result);
1580 CHECK(journal_seek(j, j->it.bpos.offset));
1581 j->it.current_serial = j->it.bpos.serial;
1583 j->it.xsize = 0; /* We have no transaction data yet... */
1584 j->it.xpos = 0; /* ...and haven't used any of it. */
1603 INSIST(j->offset <= j->it.epos.offset);
1604 if (j->offset == j->it.epos.offset)
1606 if (j->it.xpos == j->it.xsize) {
1618 if (xhdr.serial0 != j->it.current_serial) {
1623 j->it.current_serial, xhdr.serial0);
1626 j->it.xsize = xhdr.size;
1627 j->it.xpos = 0;
1647 CHECK(size_buffer(j->mctx, &j->it.source, rrhdr.size));
1648 CHECK(journal_read(j, j->it.source.base, rrhdr.size));
1649 isc_buffer_add(&j->it.source, rrhdr.size);
1657 CHECK(size_buffer(j->mctx, &j->it.target, rrhdr.size));
1660 * Parse the owner name. We don't know where it
1664 isc_buffer_setactive(&j->it.source,
1665 j->it.source.used - j->it.source.current);
1666 CHECK(dns_name_fromwire(&j->it.name, &j->it.source,
1667 &j->it.dctx, 0, &j->it.target));
1670 * Check that the RR header is there, and parse it.
1672 if (isc_buffer_remaininglength(&j->it.source) < 10)
1675 rdtype = isc_buffer_getuint16(&j->it.source);
1676 rdclass = isc_buffer_getuint16(&j->it.source);
1677 ttl = isc_buffer_getuint32(&j->it.source);
1678 rdlen = isc_buffer_getuint16(&j->it.source);
1683 if (isc_buffer_remaininglength(&j->it.source) != rdlen)
1685 isc_buffer_setactive(&j->it.source, rdlen);
1686 dns_rdata_reset(&j->it.rdata);
1687 CHECK(dns_rdata_fromwire(&j->it.rdata, rdclass,
1688 rdtype, &j->it.source, &j->it.dctx,
1689 0, &j->it.target));
1690 j->it.ttl = ttl;
1692 j->it.xpos += sizeof(journal_rawrrhdr_t) + rrhdr.size;
1695 j->it.current_serial = dns_soa_getserial(&j->it.rdata);
1701 j->it.result = result;
1707 j->it.result = read_one_rr(j);
1708 return (j->it.result);
1715 REQUIRE(j->it.result == ISC_R_SUCCESS);
1716 *name = &j->it.name;
1717 *ttl = j->it.ttl;
1718 *rdata = &j->it.rdata;
1799 * it is known to be the same for all tuples.