ldns.h

Go to the documentation of this file.
00001 /*
00002  * dns.h -- defines for the Domain Name System
00003  *
00004  * Copyright (c) 2005-2008, NLnet Labs. All rights reserved.
00005  *
00006  * See LICENSE for the license.
00007  *
00008  * This library was created by:
00009  * Jelte Jansen, Erik Rozendaal and Miek Gieben
00010  *
00011  * A bunch of defines that are used in the DNS.
00012  */
00013 
00014 
00089 #ifndef LDNS_DNS_H
00090 #define LDNS_DNS_H
00091 
00092 #include <stdio.h>
00093 #include <stdlib.h>
00094 
00095 #include <ldns/util.h>
00096 #include <ldns/buffer.h>
00097 #include <ldns/common.h>
00098 #include <ldns/dane.h>
00099 #include <ldns/dname.h>
00100 #include <ldns/dnssec.h>
00101 #include <ldns/dnssec_verify.h>
00102 #include <ldns/dnssec_sign.h>
00103 #include <ldns/duration.h>
00104 #include <ldns/error.h>
00105 #include <ldns/higher.h>
00106 #include <ldns/host2str.h>
00107 #include <ldns/host2wire.h>
00108 #include <ldns/net.h>
00109 #include <ldns/packet.h>
00110 #include <ldns/rdata.h>
00111 #include <ldns/resolver.h>
00112 #include <ldns/rr.h>
00113 #include <ldns/str2host.h>
00114 #include <ldns/tsig.h>
00115 #include <ldns/update.h>
00116 #include <ldns/wire2host.h>
00117 #include <ldns/rr_functions.h>
00118 #include <ldns/keys.h>
00119 #include <ldns/parse.h>
00120 #include <ldns/zone.h>
00121 #include <ldns/dnssec_zone.h>
00122 #include <ldns/rbtree.h>
00123 #include <ldns/sha1.h>
00124 #include <ldns/sha2.h>
00125 
00126 #ifdef __cplusplus
00127 extern "C" {
00128 #endif
00129 
00130 #define LDNS_IP4ADDRLEN      (32/8)
00131 #define LDNS_IP6ADDRLEN      (128/8)
00132 #define LDNS_PORT       53
00133 #define LDNS_ROOT_LABEL_STR     "."
00134 #define LDNS_DEFAULT_TTL        3600
00135 
00136 /* lookup tables for standard DNS stuff  */
00137 
00139 extern ldns_lookup_table ldns_certificate_types[];
00141 extern ldns_lookup_table ldns_algorithms[];
00143 extern ldns_lookup_table ldns_cert_algorithms[];
00145 extern ldns_lookup_table ldns_rr_classes[];
00147 extern ldns_lookup_table ldns_rcodes[];
00149 extern ldns_lookup_table ldns_opcodes[];
00151 extern ldns_lookup_table ldns_edns_flags[];
00152 
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 
00157 #endif /* LDNS_DNS_H */

Generated on 22 Sep 2015 for ldns by  doxygen 1.6.1