Lines Matching refs:result
22 #include <dns/result.h>
36 CHECKRESULT(isc_result_t result, const char *msg) {
37 if (result != ISC_R_SUCCESS) {
38 printf("%s: %s\n", msg, dns_result_totext(result));
76 isc_result_t result = ISC_R_SUCCESS;
81 result = ISC_R_NOMEMORY;
86 result = dns_message_totext(msg, &dns_master_style_debug,
88 if (result == ISC_R_NOSPACE) {
91 } else if (result == ISC_R_SUCCESS)
93 } while (result == ISC_R_NOSPACE);
98 return (result);
107 isc_result_t result;
179 result = isc_buffer_allocate(mctx, &input, 64 * 1024);
180 RUNTIME_CHECK(result == ISC_R_SUCCESS);
184 result = isc_buffer_reserve(&input, 1);
185 RUNTIME_CHECK(result == ISC_R_SUCCESS);
218 result = isc_buffer_reserve(&input, 1);
219 RUNTIME_CHECK(result == ISC_R_SUCCESS);
260 isc_result_t result;
264 result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
265 CHECKRESULT(result, "dns_message_create failed");
267 result = dns_message_parse(message, source, parseflags);
268 if (result == DNS_R_RECOVERABLE)
269 result = ISC_R_SUCCESS;
270 CHECKRESULT(result, "dns_message_parse failed");
272 result = printmessage(message);
273 CHECKRESULT(result, "printmessage() failed");
295 result = dns_compress_init(&cctx, -1, mctx);
296 CHECKRESULT(result, "dns_compress_init() failed");
298 result = dns_message_renderbegin(message, &cctx, &buffer);
299 CHECKRESULT(result, "dns_message_renderbegin() failed");
301 result = dns_message_rendersection(message,
303 CHECKRESULT(result,
306 result = dns_message_rendersection(message,
308 CHECKRESULT(result,
311 result = dns_message_rendersection(message,
313 CHECKRESULT(result,
316 result = dns_message_rendersection(message,
318 CHECKRESULT(result,
332 result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE,
334 CHECKRESULT(result, "dns_message_create failed");
336 result = dns_message_parse(message, &buffer, parseflags);
337 CHECKRESULT(result, "dns_message_parse failed");
339 result = printmessage(message);
340 CHECKRESULT(result, "printmessage() failed");