dns.h

Go to the documentation of this file.
00001 /*
00002  * dns.h -- defines for the Domain Name System
00003  *
00004  * Copyright (c) 2001-2005, 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 #ifndef _LDNS_DNS_H_
00015 #define _LDNS_DNS_H_
00016 
00017 #include <stdio.h>
00018 
00019 #include <ldns/util.h>
00020 #include <ldns/buffer.h>
00021 #include <ldns/common.h>
00022 #include <ldns/dname.h>
00023 #include <ldns/dnssec.h>
00024 #include <ldns/error.h>
00025 #include <ldns/higher.h>
00026 #include <ldns/host2str.h>
00027 #include <ldns/host2wire.h>
00028 #include <ldns/net.h>
00029 #include <ldns/packet.h>
00030 #include <ldns/rdata.h>
00031 #include <ldns/resolver.h>
00032 #include <ldns/rr.h>
00033 #include <ldns/str2host.h>
00034 #include <ldns/tsig.h>
00035 #include <ldns/update.h>
00036 #include <ldns/wire2host.h>
00037 #include <ldns/rr_functions.h>
00038 #include <ldns/keys.h>
00039 #include <ldns/parse.h>
00040 #include <ldns/zone.h>
00041 
00042 #define LDNS_IP4ADDRLEN      (32/8)
00043 #define LDNS_IP6ADDRLEN      (128/8)
00044 #define LDNS_PORT       53
00045 #define LDNS_ROOT_LABEL '\0'
00046 #define LDNS_DEFAULT_TTL        3600
00047 
00048 #ifndef LDNS_VERSION
00049 #define LDNS_VERSION    "0.60"
00050 #endif /* LDNS_VERSION */
00051 
00052 /* lookup tables for standard DNS stuff  */
00053 
00054 /* Taken from RFC 2538, section 2.1.  */
00055 extern ldns_lookup_table ldns_certificate_types[];
00056 /* Taken from RFC 2535, section 7.  */
00057 extern ldns_lookup_table ldns_algorithms[];
00058 /* Taken from RFC 2538.  */
00059 extern ldns_lookup_table ldns_cert_algorithms[];
00060 /* rr types  */
00061 extern ldns_lookup_table ldns_rr_classes[];
00062 /* if these are used elsewhere */
00063 extern ldns_lookup_table ldns_rcodes[];
00064 extern ldns_lookup_table ldns_opcodes[];
00065 extern ldns_lookup_table ldns_edns_flags[];
00066 
00067 #endif /* _LDNS_DNS_H_ */

Generated on Mon Sep 11 20:10:20 2006 for ldns by  doxygen 1.4.7