2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

libdns refactoring: get rid of multiple versions of dns_request_createraw and dns_request_createvia

This commit is contained in:
Witold Kręcicki
2018-04-03 15:12:27 +02:00
parent e2a06db7f3
commit 8c12e488f7
8 changed files with 125 additions and 283 deletions

View File

@@ -684,12 +684,12 @@ sendquery(struct query *query, isc_task_t *task)
if (tcp_mode)
options |= DNS_REQUESTOPT_TCP | DNS_REQUESTOPT_SHARE;
request = NULL;
result = dns_request_createvia4(requestmgr, message,
have_src ? &srcaddr : NULL, &dstaddr,
dscp, options, NULL,
query->timeout, query->udptimeout,
query->udpretries, task,
recvresponse, message, &request);
result = dns_request_createvia(requestmgr, message,
have_src ? &srcaddr : NULL, &dstaddr,
dscp, options, NULL,
query->timeout, query->udptimeout,
query->udpretries, task,
recvresponse, message, &request);
CHECK("dns_request_createvia4", result);
return ISC_R_SUCCESS;