Lines Matching defs:output
74 typedef int (*rdata_to_string_type)(buffer_type *output,
79 rdata_dname_to_string(buffer_type *output, rdata_atom_type rdata,
82 buffer_printf(output,
90 rdata_dns_name_to_string(buffer_type *output, rdata_atom_type rdata,
101 buffer_printf(output, ".");
107 buffer_printf(output, "\\%c", (char) ch);
109 buffer_printf(output, "\\%03u", (unsigned int) ch);
111 buffer_printf(output, "%c", (char) ch);
113 buffer_printf(output, "\\%03u", (unsigned int) ch);
122 buffer_printf(output, ".");
127 rdata_text_to_string(buffer_type *output, rdata_atom_type rdata,
134 buffer_printf(output, "\"");
139 buffer_printf(output, "\\");
141 buffer_printf(output, "%c", ch);
143 buffer_printf(output, "\\%03u", (unsigned) data[i]);
146 buffer_printf(output, "\"");
151 rdata_texts_to_string(buffer_type *output, rdata_atom_type rdata,
160 buffer_printf(output, "\"");
165 buffer_printf(output, "\\");
167 buffer_printf(output, "%c", ch);
169 buffer_printf(output, "\\%03u", (unsigned) data[pos+i]);
173 buffer_printf(output, pos < length?"\" ":"\"");
179 rdata_long_text_to_string(buffer_type *output, rdata_atom_type rdata,
186 buffer_printf(output, "\"");
191 buffer_printf(output, "\\");
193 buffer_printf(output, "%c", ch);
195 buffer_printf(output, "\\%03u", (unsigned) data[i]);
198 buffer_printf(output, "\"");
203 rdata_tag_to_string(buffer_type *output, rdata_atom_type rdata,
212 buffer_printf(output, "%c", ch);
219 rdata_byte_to_string(buffer_type *output, rdata_atom_type rdata,
223 buffer_printf(output, "%lu", (unsigned long) data);
228 rdata_short_to_string(buffer_type *output, rdata_atom_type rdata,
232 buffer_printf(output, "%lu", (unsigned long) data);
237 rdata_long_to_string(buffer_type *output, rdata_atom_type rdata,
241 buffer_printf(output, "%lu", (unsigned long) data);
246 rdata_a_to_string(buffer_type *output, rdata_atom_type rdata,
252 buffer_printf(output, "%s", str);
259 rdata_aaaa_to_string(buffer_type *output, rdata_atom_type rdata,
265 buffer_printf(output, "%s", str);
272 rdata_ilnp64_to_string(buffer_type *output, rdata_atom_type rdata,
281 buffer_printf(output, "%.4x:%.4x:%.4x:%.4x", a1, a2, a3, a4);
286 rdata_eui48_to_string(buffer_type *output, rdata_atom_type rdata,
297 buffer_printf(output, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
303 rdata_eui64_to_string(buffer_type *output, rdata_atom_type rdata,
316 buffer_printf(output, "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
322 rdata_rrtype_to_string(buffer_type *output, rdata_atom_type rdata,
326 buffer_printf(output, "%s", rrtype_to_string(type));
331 rdata_algorithm_to_string(buffer_type *output, rdata_atom_type rdata,
335 buffer_printf(output, "%u", (unsigned) id);
340 rdata_certificate_type_to_string(buffer_type *output, rdata_atom_type rdata,
347 buffer_printf(output, "%s", type->name);
349 buffer_printf(output, "%u", (unsigned) id);
355 rdata_period_to_string(buffer_type *output, rdata_atom_type rdata,
359 buffer_printf(output, "%lu", (unsigned long) period);
364 rdata_time_to_string(buffer_type *output, rdata_atom_type rdata,
372 buffer_printf(output, "%s", buf);
379 rdata_base32_to_string(buffer_type *output, rdata_atom_type rdata,
385 buffer_write(output, "-", 1);
389 buffer_reserve(output, size * 2 + 1);
391 (char *) buffer_current(output), size * 2);
393 buffer_skip(output, length);
399 rdata_base64_to_string(buffer_type *output, rdata_atom_type rdata,
406 buffer_write(output, "0", 1);
409 buffer_reserve(output, size * 2 + 1);
411 (char *) buffer_current(output), size * 2);
413 buffer_skip(output, length);
419 hex_to_string(buffer_type *output, const uint8_t *data, size_t size)
427 buffer_reserve(output, size * 2);
430 buffer_write_u8(output, hexdigits[octet >> 4]);
431 buffer_write_u8(output, hexdigits[octet & 0x0f]);
436 rdata_hex_to_string(buffer_type *output, rdata_atom_type rdata,
441 buffer_printf(output, "0");
443 hex_to_string(output, rdata_atom_data(rdata), rdata_atom_size(rdata));
449 rdata_hexlen_to_string(buffer_type *output, rdata_atom_type rdata,
454 buffer_printf(output, "-");
457 hex_to_string(output, rdata_atom_data(rdata)+1, rdata_atom_size(rdata)-1);
462 rdata_nsap_to_string(buffer_type *output, rdata_atom_type rdata,
465 buffer_printf(output, "0x");
466 hex_to_string(output, rdata_atom_data(rdata), rdata_atom_size(rdata));
471 rdata_apl_to_string(buffer_type *output, rdata_atom_type rdata,
498 buffer_printf(output, "%s%d:%s/%d",
511 rdata_services_to_string(buffer_type *output, rdata_atom_type rdata,
529 buffer_printf(output, "%s", proto->p_name);
535 buffer_printf(output, " %s", service->s_name);
537 buffer_printf(output, " %d", i);
549 rdata_ipsecgateway_to_string(buffer_type *output, rdata_atom_type rdata, rr_type* rr)
554 buffer_printf(output, ".");
557 rdata_a_to_string(output, rdata, rr);
560 rdata_aaaa_to_string(output, rdata, rr);
571 buffer_printf(output, "%s", dname_to_string(d, NULL));
582 rdata_nxt_to_string(buffer_type *output, rdata_atom_type rdata,
591 buffer_printf(output, "%s ", rrtype_to_string(i));
595 buffer_skip(output, -1);
601 rdata_nsec_to_string(buffer_type *output, rdata_atom_type rdata,
604 size_t saved_position = buffer_position(output);
618 buffer_set_position(output, saved_position);
624 buffer_printf(output,
639 rdata_loc_to_string(buffer_type *ATTR_UNUSED(output),
651 buffer_print_svcparamkey(buffer_type *output, uint16_t svcparamkey)
654 buffer_printf(output, "%s", svcparamkey_strs[svcparamkey]);
656 buffer_printf(output, "key%d", (int)svcparamkey);
660 rdata_svcparam_port_to_string(buffer_type *output, uint16_t val_len,
665 buffer_printf(output, "=%d", (int)ntohs(data[0]));
670 rdata_svcparam_ipv4hint_to_string(buffer_type *output, uint16_t val_len,
681 buffer_printf(output, "=%s", ip_str);
688 buffer_printf(output, ",%s", ip_str);
697 rdata_svcparam_ipv6hint_to_string(buffer_type *output, uint16_t val_len,
708 buffer_printf(output, "=%s", ip_str);
715 buffer_printf(output, ",%s", ip_str);
724 rdata_svcparam_mandatory_to_string(buffer_type *output, uint16_t val_len,
731 buffer_write_u8(output, '=');
732 buffer_print_svcparamkey(output, ntohs(*data));
736 buffer_write_u8(output, ',');
737 buffer_print_svcparamkey(output, ntohs(*data));
745 rdata_svcparam_ech_to_string(buffer_type *output, uint16_t val_len,
752 buffer_write_u8(output, '=');
754 buffer_reserve(output, val_len * 2 + 1);
756 (char *) buffer_current(output), val_len * 2);
758 buffer_skip(output, length);
765 rdata_svcparam_alpn_to_string(buffer_type *output, uint16_t val_len,
772 buffer_write_u8(output, '=');
773 buffer_write_u8(output, '"');
782 buffer_printf(output, "\\\\\\%c", dp[i]);
785 buffer_printf(output, "\\\\%c", dp[i]);
788 buffer_printf(output, "\\%03u", (unsigned) dp[i]);
791 buffer_write_u8(output, dp[i]);
795 buffer_write_u8(output, ',');
797 buffer_write_u8(output, '"');
802 rdata_svcparam_to_string(buffer_type *output, rdata_atom_type rdata,
815 buffer_print_svcparamkey(output, svcparamkey);
835 return rdata_svcparam_port_to_string(output, val_len, data+2);
837 return rdata_svcparam_ipv4hint_to_string(output, val_len, data+2);
839 return rdata_svcparam_ipv6hint_to_string(output, val_len, data+2);
841 return rdata_svcparam_mandatory_to_string(output, val_len, data+2);
845 return rdata_svcparam_alpn_to_string(output, val_len, data+2);
847 return rdata_svcparam_ech_to_string(output, val_len, data+2);
851 buffer_write(output, "=\"", 2);
856 buffer_printf(output, "\\%c", dp[i]);
859 buffer_printf(output, "\\%03u", (unsigned) dp[i]);
862 buffer_write_u8(output, dp[i]);
864 buffer_write_u8(output, '"');
871 rdata_unknown_to_string(buffer_type *output, rdata_atom_type rdata,
875 buffer_printf(output, "\\# %lu ", (unsigned long) size);
876 hex_to_string(output, rdata_atom_data(rdata), size);
916 rdata_atom_to_string(buffer_type *output, rdata_zoneformat_type type,
919 return rdata_to_string_table[type](output, rdata, record);
1116 rdata_atoms_to_unknown_string(buffer_type *output,
1124 buffer_printf(output, " \\# %lu ", (unsigned long) size);
1130 output, dname_name(dname), dname->name_size);
1132 hex_to_string(output, rdata_atom_data(rdatas[i]),
1140 print_rdata(buffer_type *output, rrtype_descriptor_type *descriptor,
1144 size_t saved_position = buffer_position(output);
1148 buffer_printf(output, "\t");
1150 buffer_printf(output, " (\n\t\t");
1152 buffer_printf(output, " ");
1155 output,
1159 buffer_set_position(output, saved_position);
1164 buffer_printf(output, " )");