ldns/rr_functions.h \
ldns/ldns.h \
ldns/dns.h \
+ ldns/config.h \
ldns/util.h
PROG_SOURCES = mx.c chaos.c
PROG_TARGETS = $(PROG_SOURCES:.c=)
rm -f config.status
rm -f config.log
rm -f Makefile
- rm -f config.h
+ rm -f ldns/config.h
rm -f config.h.in
rm -f configure
rm -f config.sub
* Licensed under the GPL version 2
*/
-#include <stdio.h>
-#include <config.h>
#include <ldns/ldns.h>
int
AC_CONFIG_FILES([Makefile
])
-AC_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADER([ldns/config.h])
AC_OUTPUT
* See the file LICENSE for the license
*/
-#include <config.h>
-
-#include <ldns/rdata.h>
-#include <ldns/error.h>
-#include <ldns/str2host.h>
#include <ldns/dns.h>
-#include "ldns/util.h"
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
* See the file LICENSE for the license
*/
-#include <config.h>
-#include <ldns/ldns.h>
+#include <ldns/dns.h>
#include <strings.h>
* See the file LICENSE for the license
*/
-#include <config.h>
-#include <openssl/ssl.h>
-#include <openssl/sha.h>
-#include <ldns/higher.h>
-#include <ldns/parse.h>
-#include <ldns/resolver.h>
#include <ldns/dns.h>
-#include "ldns/util.h"
+#include <openssl/ssl.h>
+#include <openssl/sha.h>
ldns_rr_list *
ldns_get_rr_list_addr_by_name(ldns_resolver *res, ldns_rdf *name, ldns_rr_class c,
*
* See the file LICENSE for the license
*/
-#include <config.h>
+#include <ldns/dns.h>
#include <limits.h>
#include <netdb.h>
#include <time.h>
-#include <ldns/host2str.h>
-#include <ldns/packet.h>
-#include <ldns/wire2host.h>
-#include <ldns/dns.h>
-
-#include <ldns/util.h>
-
/* lookup tables for standard DNS stuff */
/* Taken from RFC 2538, section 2.1. */
* handling
*/
-#include <config.h>
+#include <ldns/dns.h>
+
#include <openssl/ssl.h>
-#include <ldns/util.h>
-#include <ldns/dnssec.h>
-#include <ldns/keys.h>
ldns_lookup_table ldns_signing_algorithms[] = {
{ LDNS_SIGN_RSAMD5, "RSAMD5" },
#ifndef _DNS_H_
#define _DNS_H_
+#include <ldns/config.h>
#include <ldns/util.h>
#include <ldns/buffer.h>
#include <ldns/common.h>
* See the file LICENSE for the license
*/
-#include <config.h>
-
-#include <ldns/ldns.h>
+#include <ldns/dns.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <errno.h>
-#include "ldns/util.h"
-
ldns_status
ldns_send(ldns_pkt **result, ldns_resolver *r, ldns_pkt *query_pkt)
{
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
+#include <ldns/dns.h>
-#include <config.h>
-
#include <limits.h>
#include <strings.h>
-#include <ldns/parse.h>
-
-#include <ldns/rr.h>
-#include <ldns/dns.h>
-#include "ldns/util.h"
-
ssize_t
ldns_fget_keyword_data(FILE *f, const char *keyword, const char *k_del, char *data,
const char *d_del)
* See the file LICENSE for the license
*/
-#include <config.h>
-
+#include <ldns/dns.h>
#include <ldns/rdata.h>
#include <ldns/error.h>
#include <ldns/str2host.h>
-#include <ldns/dns.h>
#include "ldns/util.h"
#include <netinet/in.h>
* See the file LICENSE for the license
*/
-#include <config.h>
-#include <stdio.h>
-
-#include <ldns/ldns.h>
+#include <ldns/dns.h>
#include <strings.h>
-#include "ldns/util.h"
-
/* Access function for reading
* and setting the different Resolver
* options
* (c) NLnet Labs, 2004
* See the file LICENSE for the license
*/
-
-#include <config.h>
-
-#include <limits.h>
-#include <strings.h>
-
-#include <ldns/rr.h>
#include <ldns/dns.h>
-#include <ldns/buffer.h>
-#include "ldns/util.h"
+#include <strings.h>
ldns_rr *
ldns_rr_new(void)
* first the read variant, then the write
*/
-#include <config.h>
+#include <ldns/dns.h>
#include <limits.h>
#include <strings.h>
-#include <ldns/rr.h>
-#include <ldns/dns.h>
-#include <ldns/rr_functions.h>
-
-#include "ldns/util.h"
-
/**
* return a specific rdf
* \param[in] type type of RR
*
*/
-#include <config.h>
-
-
#include <ldns/ldns.h>
-#include "ldns/util.h"
-
/*
0xc2, 0xb4, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
0x00, 0x02, 0x00, 0x02, 0x03, 0x77, 0x77, 0x77,
* Print the result
*/
-#include <config.h>
-#include <ldns/ldns.h>
-#include <ldns/dname.h>
+#include <ldns/dns.h>
void
print_usage(char *file)
* for a particulary domain
*/
+#include <ldns/dns.h>
#include <stdio.h>
-#include <config.h>
-#include <ldns/ldns.h>
int
usage(FILE *fp, char *prog) {
* for a particulary domain
*/
+#include <ldns/dns.h>
#include <stdio.h>
-#include <config.h>
-#include <ldns/ldns.h>
int
usage(FILE *fp, char *prog) {
* Print the result
*/
-#include <config.h>
#include <ldns/dns.h>
void
*
* See the file LICENSE for the license
*/
-#include <config.h>
-
-#include <ldns/str2host.h>
#include <ldns/dns.h>
-#include <ldns/rdata.h>
-
-#include "ldns/util.h"
#include <sys/types.h>
#include <sys/socket.h>