Lines Matching defs:dbuf
369 isc_buffer_t *dbuf, *dbuf_next;
428 for (dbuf = ISC_LIST_HEAD(client->query.namebufs);
429 dbuf != NULL;
430 dbuf = dbuf_next) {
431 dbuf_next = ISC_LIST_NEXT(dbuf, link);
433 ISC_LIST_UNLINK(client->query.namebufs, dbuf, link);
434 isc_buffer_free(&dbuf);
483 isc_buffer_t *dbuf;
491 dbuf = NULL;
492 result = isc_buffer_allocate(client->mctx, &dbuf, 1024);
498 ISC_LIST_APPEND(client->query.namebufs, dbuf, link);
506 isc_buffer_t *dbuf;
525 dbuf = ISC_LIST_TAIL(client->query.namebufs);
526 INSIST(dbuf != NULL);
527 isc_buffer_availableregion(dbuf, &r);
536 dbuf = ISC_LIST_TAIL(client->query.namebufs);
537 isc_buffer_availableregion(dbuf, &r);
541 return (dbuf);
545 query_keepname(ns_client_t *client, dns_name_t *name, isc_buffer_t *dbuf) {
550 * 'name' is using space in 'dbuf', but 'dbuf' has not yet been
557 isc_buffer_add(dbuf, r.length);
583 query_newname(ns_client_t *client, isc_buffer_t *dbuf,
600 isc_buffer_availableregion(dbuf, &r);
1365 isc_buffer_t *dbuf;
1416 dbuf = query_getnamebuf(client);
1417 if (dbuf == NULL)
1419 fname = query_newname(client, dbuf, &b);
1547 query_keepname(client, fname, dbuf);
1852 isc_buffer_t *dbuf;
1919 dbuf = query_getnamebuf(client);
1920 if (dbuf == NULL)
1922 fname = query_newname(client, dbuf, &b);
1981 query_keepname(client, fname, dbuf);
2108 query_keepname(client, fname, dbuf);
2136 query_keepname(client, fname, dbuf);
2366 dns_rdataset_t *sigrdataset, isc_buffer_t *dbuf,
2389 * If 'dbuf' is not NULL, then '*namep' is the name whose data is
2390 * stored in 'dbuf'. In this case, query_addrrset() guarantees that
2412 if (dbuf != NULL)
2419 if (dbuf != NULL)
2420 query_keepname(client, name, dbuf);
2426 if (dbuf != NULL)
2548 dns_rdataset_t *rdataset, isc_buffer_t *dbuf,
2583 if (dbuf != NULL)
2591 if (dbuf != NULL)
2593 dbuf = NULL;
2647 if (dbuf != NULL)
2648 query_keepname(client, name, dbuf);
2650 dbuf = NULL;
2678 if (dbuf != NULL)
2687 isc_buffer_t *dbuf, dns_section_t section)
2699 * If 'dbuf' is not NULL, then '*namep' is the name whose data is
2700 * stored in 'dbuf'. In this case, query_addrrset() guarantees that
2721 if (dbuf != NULL)
2730 if (dbuf != NULL)
2731 query_keepname(client, name, dbuf);
2737 if (dbuf != NULL)
3247 isc_buffer_t *dbuf;
3285 dbuf = query_getnamebuf(client);
3286 if (dbuf == NULL)
3288 fname = query_newname(client, dbuf, &b);
3314 query_keepname(client, fname, dbuf);
3353 * zfname, so we must set dbuf to NULL to
3357 dbuf = NULL;
3402 query_addrrset(client, &fname, &rdataset, &sigrdataset, dbuf,
3437 fixfname(ns_client_t *client, dns_name_t **fname, isc_buffer_t **dbuf,
3441 *dbuf = query_getnamebuf(client);
3442 if (*dbuf == NULL)
3444 *fname = query_newname(client, *dbuf, nbuf);
3456 isc_buffer_t *dbuf, b;
3519 dbuf = query_getnamebuf(client);
3520 if (dbuf == NULL)
3522 fname = query_newname(client, dbuf, &b);
3533 query_addrrset(client, &fname, &rdataset, &sigrdataset, dbuf,
3544 fixfname(client, &fname, &dbuf, &b);
3554 query_addrrset(client, &fname, &rdataset, &sigrdataset, dbuf,
3572 isc_buffer_t *dbuf, b;
3649 dbuf = query_getnamebuf(client);
3650 if (dbuf == NULL)
3652 fname = query_newname(client, dbuf, &b);
3696 dbuf, DNS_SECTION_AUTHORITY);
3702 dbuf = query_getnamebuf(client);
3703 if (dbuf == NULL)
3705 fname = query_newname(client, dbuf, &b);
3734 dbuf, DNS_SECTION_AUTHORITY);
3743 dbuf = query_getnamebuf(client);
3744 if (dbuf == NULL)
3746 fname = query_newname(client, dbuf, &b);
3774 dbuf, DNS_SECTION_AUTHORITY);
3807 dbuf, DNS_SECTION_AUTHORITY);
3841 isc_buffer_t *dbuf, b;
3878 dbuf = query_getnamebuf(client);
3879 if (dbuf == NULL)
3881 fname = query_newname(client, dbuf, &b);
3889 dbuf, DNS_SECTION_AUTHORITY);
5725 dns_name_t *cname, dns_name_t *fname, isc_buffer_t *dbuf)
5752 query_keepname(client, fname, dbuf);
5874 isc_buffer_t *dbuf, b;
5885 dbuf = query_getnamebuf(client);
5886 if (dbuf == NULL)
5888 fname = query_newname(client, dbuf, &b);
5897 query_addrrset(client, &fname, &neg, &negsig, dbuf,
5904 dbuf = query_getnamebuf(client);
5905 if (dbuf == NULL)
5907 fname = query_newname(client, dbuf, &b);
5922 query_addrrset(client, &fname, &neg, &negsig, dbuf,
6573 isc_buffer_t *dbuf;
6796 dbuf = query_getnamebuf(client);
6797 if (dbuf == NULL) {
6803 fname = query_newname(client, dbuf, &b);
7022 dbuf = query_getnamebuf(client);
7023 if (ISC_UNLIKELY(dbuf == NULL)) {
7029 fname = query_newname(client, dbuf, &b);
7345 fname, dbuf);
7358 fname, dbuf);
7556 dbuf, DNS_SECTION_AUTHORITY);
7572 query_keepname(client, fname, dbuf);
7605 * zfname, so we must set dbuf to NULL to
7609 dbuf = NULL;
7695 dbuf, DNS_SECTION_AUTHORITY);
7730 dbuf = query_getnamebuf(client);
7731 if (dbuf == NULL) {
7738 fname = query_newname(client, dbuf, &b);
7813 dbuf,
7824 fixfname(client, &fname, &dbuf, &b);
7863 query_keepname(client, fname, dbuf);
7965 query_keepname(client, fname, dbuf);
8108 dbuf = query_getnamebuf(client);
8109 if (dbuf == NULL) {
8116 fname = query_newname(client, dbuf, &b);
8164 query_keepname(client, fname, dbuf);
8233 query_addrrset(client, &fname, &rdataset, sigrdatasetp, dbuf,
8307 query_addrrset(client, &fname, &rdataset, sigrdatasetp, dbuf,
8343 dbuf = query_getnamebuf(client);
8344 if (dbuf == NULL) {
8348 fname = query_newname(client, dbuf, &b);
8366 query_keepname(client, fname, dbuf);
8472 * Calling query_addrrset() with a non-NULL dbuf is going
8476 * now, and pass a NULL dbuf to query_addrrset().
8482 query_keepname(client, fname, dbuf);
8632 fname = query_newname(client, dbuf, &b);
8866 sigrdataset, dbuf,
8894 query_filter64(client, &fname, rdataset, dbuf,
8901 sigrdatasetp, dbuf, DNS_SECTION_ANSWER);