Lines Matching defs:msgblock
222 * Return an element from the msgblock. If no more are available, return
295 dns_msgblock_t *msgblock;
304 msgblock = ISC_LIST_TAIL(msg->rdatas);
305 rdata = msgblock_get(msgblock, dns_rdata_t);
307 msgblock = msgblock_allocate(msg->mctx, sizeof(dns_rdata_t),
309 if (msgblock == NULL)
312 ISC_LIST_APPEND(msg->rdatas, msgblock, link);
314 rdata = msgblock_get(msgblock, dns_rdata_t);
328 dns_msgblock_t *msgblock;
337 msgblock = ISC_LIST_TAIL(msg->rdatalists);
338 rdatalist = msgblock_get(msgblock, dns_rdatalist_t);
340 msgblock = msgblock_allocate(msg->mctx,
343 if (msgblock == NULL)
346 ISC_LIST_APPEND(msg->rdatalists, msgblock, link);
348 rdatalist = msgblock_get(msgblock, dns_rdatalist_t);
356 dns_msgblock_t *msgblock;
359 msgblock = ISC_LIST_TAIL(msg->offsets);
360 offsets = msgblock_get(msgblock, dns_offsets_t);
362 msgblock = msgblock_allocate(msg->mctx,
365 if (msgblock == NULL)
368 ISC_LIST_APPEND(msg->offsets, msgblock, link);
370 offsets = msgblock_get(msgblock, dns_offsets_t);
540 dns_msgblock_t *msgblock, *next_msgblock;
582 msgblock = ISC_LIST_HEAD(msg->rdatas);
583 if (!everything && msgblock != NULL) {
584 msgblock_reset(msgblock);
585 msgblock = ISC_LIST_NEXT(msgblock, link);
587 while (msgblock != NULL) {
588 next_msgblock = ISC_LIST_NEXT(msgblock, link);
589 ISC_LIST_UNLINK(msg->rdatas, msgblock, link);
590 msgblock_free(msg->mctx, msgblock, sizeof(dns_rdata_t));
591 msgblock = next_msgblock;
598 msgblock = ISC_LIST_HEAD(msg->rdatalists);
599 if (!everything && msgblock != NULL) {
600 msgblock_reset(msgblock);
601 msgblock = ISC_LIST_NEXT(msgblock, link);
603 while (msgblock != NULL) {
604 next_msgblock = ISC_LIST_NEXT(msgblock, link);
605 ISC_LIST_UNLINK(msg->rdatalists, msgblock, link);
606 msgblock_free(msg->mctx, msgblock, sizeof(dns_rdatalist_t));
607 msgblock = next_msgblock;
610 msgblock = ISC_LIST_HEAD(msg->offsets);
611 if (!everything && msgblock != NULL) {
612 msgblock_reset(msgblock);
613 msgblock = ISC_LIST_NEXT(msgblock, link);
615 while (msgblock != NULL) {
616 next_msgblock = ISC_LIST_NEXT(msgblock, link);
617 ISC_LIST_UNLINK(msg->offsets, msgblock, link);
618 msgblock_free(msg->mctx, msgblock, sizeof(dns_offsets_t));
619 msgblock = next_msgblock;