Add debugging for CNAME records.

Allow routines to be called by nmb.c
This commit is contained in:
Michael Brown
2005-05-01 11:30:26 +00:00
parent 3ae7a3d1f0
commit bcedad4708
2 changed files with 38 additions and 5 deletions

View File

@@ -2,8 +2,9 @@
#define DNS_RESOLVER_H
#include "stdint.h"
#include "nic.h"
#include "in.h"
#include "ip.h"
#include "udp.h"
/*
* Constants
@@ -76,6 +77,16 @@ struct dns_rr_info_a {
struct dns_rr_info_cname {
struct dns_rr_info;
char cname[0];
};
} __attribute__ (( packed ));
/*
* Functions in dns.c (used by nmb.c)
*
*/
extern struct dns_header * dns_query ( struct dns_query *query,
unsigned int query_len,
struct sockaddr_in *nameserver );
extern struct dns_rr_info * dns_find_rr ( struct dns_query *query,
struct dns_header *reply );
#endif /* DNS_RESOLVER_H */