host2str.h
Go to the documentation of this file.
1 
18 #ifndef LDNS_HOST2STR_H
19 #define LDNS_HOST2STR_H
20 
21 #include <ldns/common.h>
22 #include <ldns/error.h>
23 #include <ldns/rr.h>
24 #include <ldns/rdata.h>
25 #include <ldns/packet.h>
26 #include <ldns/buffer.h>
27 #include <ldns/resolver.h>
28 #include <ldns/zone.h>
29 #include <ctype.h>
30 
31 #include "ldns/util.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #define LDNS_APL_IP4 1
38 #define LDNS_APL_IP6 2
39 #define LDNS_APL_MASK 0x7f
40 #define LDNS_APL_NEGATION 0x80
41 
46 #define LDNS_COMMENT_NULLS 0x0001
47 
48 #define LDNS_COMMENT_KEY_ID 0x0002
49 
50 #define LDNS_COMMENT_KEY_TYPE 0x0004
51 
52 #define LDNS_COMMENT_KEY_SIZE 0x0008
53 
54 #define LDNS_COMMENT_KEY (LDNS_COMMENT_KEY_ID \
55  |LDNS_COMMENT_KEY_TYPE\
56  |LDNS_COMMENT_KEY_SIZE)
57 
58 #define LDNS_COMMENT_BUBBLEBABBLE 0x0010
59 
60 #define LDNS_COMMENT_FLAGS 0x0020
61 
62 #define LDNS_COMMENT_NSEC3_CHAIN 0x0040
63 
64 #define LDNS_COMMENT_LAYOUT 0x0080
65 
66 #define LDNS_COMMENT_RRSIGS 0x0100
67 #define LDNS_FMT_ZEROIZE_RRSIGS 0x0200
68 #define LDNS_FMT_PAD_SOA_SERIAL 0x0400
69 
81 {
83  int flags;
85  void *data;
86 };
88 
109 
119 
129 
139  ldns_algorithm algorithm);
140 
150  ldns_cert_algorithm cert_algorithm);
151 
152 
162 
172 
181 char *ldns_pkt_algorithm2str(ldns_algorithm algorithm);
182 
192 
200 
208 
216 
224 
232 
240 
248 
256 
264 
273  const ldns_rr_type type);
274 
283 char *ldns_rr_type2str(const ldns_rr_type type);
284 
293  const ldns_rr_class klass);
294 
303 char *ldns_rr_class2str(const ldns_rr_class klass);
304 
305 
313 
321 
329 
337 
345 
353 
361 
369 
377 
385 
393 
401 
409 
410 
420 
432 
446  const ldns_output_format *fmt, const ldns_rr *rr);
447 
457 
468  const ldns_output_format *fmt, const ldns_pkt *pkt);
469 
477 
478 
488 
496 
504 
512 
520 
529 char *ldns_rdf2str(const ldns_rdf *rdf);
530 
539 char *ldns_rr2str(const ldns_rr *rr);
540 
550 char *ldns_rr2str_fmt(const ldns_output_format *fmt, const ldns_rr *rr);
551 
560 char *ldns_pkt2str(const ldns_pkt *pkt);
561 
571 char *ldns_pkt2str_fmt(const ldns_output_format *fmt, const ldns_pkt *pkt);
572 
581 char *ldns_key2str(const ldns_key *k);
582 
591 char *ldns_rr_list2str(const ldns_rr_list *rr_list);
592 
603  const ldns_output_format *fmt, const ldns_rr_list *rr_list);
604 
613 char *ldns_buffer2str(ldns_buffer *buffer);
614 
624 char *ldns_buffer_export2str(ldns_buffer *buffer);
625 
634 void ldns_rdf_print(FILE *output, const ldns_rdf *rdf);
635 
644 void ldns_rr_print(FILE *output, const ldns_rr *rr);
645 
655 void ldns_rr_print_fmt(FILE *output,
656  const ldns_output_format *fmt, const ldns_rr *rr);
657 
666 void ldns_pkt_print(FILE *output, const ldns_pkt *pkt);
667 
677 void ldns_pkt_print_fmt(FILE *output,
678  const ldns_output_format *fmt, const ldns_pkt *pkt);
679 
688 
698  const ldns_output_format *fmt, const ldns_rr_list *list);
699 
708 
714 void ldns_rr_list_print(FILE *output, const ldns_rr_list *list);
715 
722 void ldns_rr_list_print_fmt(FILE *output,
723  const ldns_output_format *fmt, const ldns_rr_list *list);
724 
731 void ldns_resolver_print(FILE *output, const ldns_resolver *r);
732 
740 void ldns_resolver_print_fmt(FILE *output,
741  const ldns_output_format *fmt, const ldns_resolver *r);
742 
749 void ldns_zone_print(FILE *output, const ldns_zone *z);
750 
758 void ldns_zone_print_fmt(FILE *output,
759  const ldns_output_format *fmt, const ldns_zone *z);
760 
768 
769 #ifdef __cplusplus
770 }
771 #endif
772 
773 #endif /* LDNS_HOST2STR_H */