Lines Matching defs:msgblock
200 * Return an element from the msgblock. If no more are available, return
273 dns_msgblock_t *msgblock;
282 msgblock = ISC_LIST_TAIL(msg->rdatas);
283 rdata = msgblock_get(msgblock, dns_rdata_t);
285 msgblock = msgblock_allocate(msg->mctx, sizeof(dns_rdata_t),
287 if (msgblock == NULL)
290 ISC_LIST_APPEND(msg->rdatas, msgblock, link);
292 rdata = msgblock_get(msgblock, dns_rdata_t);
306 dns_msgblock_t *msgblock;
315 msgblock = ISC_LIST_TAIL(msg->rdatalists);
316 rdatalist = msgblock_get(msgblock, dns_rdatalist_t);
318 msgblock = msgblock_allocate(msg->mctx,
321 if (msgblock == NULL)
324 ISC_LIST_APPEND(msg->rdatalists, msgblock, link);
326 rdatalist = msgblock_get(msgblock, dns_rdatalist_t);
337 dns_msgblock_t *msgblock;
340 msgblock = ISC_LIST_TAIL(msg->offsets);
341 offsets = msgblock_get(msgblock, dns_offsets_t);
343 msgblock = msgblock_allocate(msg->mctx,
346 if (msgblock == NULL)
349 ISC_LIST_APPEND(msg->offsets, msgblock, link);
351 offsets = msgblock_get(msgblock, dns_offsets_t);
527 dns_msgblock_t *msgblock, *next_msgblock;
569 msgblock = ISC_LIST_HEAD(msg->rdatas);
570 if (!everything && msgblock != NULL) {
571 msgblock_reset(msgblock);
572 msgblock = ISC_LIST_NEXT(msgblock, link);
574 while (msgblock != NULL) {
575 next_msgblock = ISC_LIST_NEXT(msgblock, link);
576 ISC_LIST_UNLINK(msg->rdatas, msgblock, link);
577 msgblock_free(msg->mctx, msgblock, sizeof(dns_rdata_t));
578 msgblock = next_msgblock;
585 msgblock = ISC_LIST_HEAD(msg->rdatalists);
586 if (!everything && msgblock != NULL) {
587 msgblock_reset(msgblock);
588 msgblock = ISC_LIST_NEXT(msgblock, link);
590 while (msgblock != NULL) {
591 next_msgblock = ISC_LIST_NEXT(msgblock, link);
592 ISC_LIST_UNLINK(msg->rdatalists, msgblock, link);
593 msgblock_free(msg->mctx, msgblock, sizeof(dns_rdatalist_t));
594 msgblock = next_msgblock;
597 msgblock = ISC_LIST_HEAD(msg->offsets);
598 if (!everything && msgblock != NULL) {
599 msgblock_reset(msgblock);
600 msgblock = ISC_LIST_NEXT(msgblock, link);
602 while (msgblock != NULL) {
603 next_msgblock = ISC_LIST_NEXT(msgblock, link);
604 ISC_LIST_UNLINK(msg->offsets, msgblock, link);
605 msgblock_free(msg->mctx, msgblock, sizeof(dns_offsets_t));
606 msgblock = next_msgblock;