summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-05-01 13:30:26 +0200
committerMichael Brown2005-05-01 13:30:26 +0200
commitbcedad47088a004ea860f7f0edfd21cea91a0914 (patch)
treebee1208ee262ce88ee4c0ef6c3a23d67eba58178 /src/include
parentNMB packets are so similar to DNS packets; we may as well add NMB as a (diff)
downloadipxe-bcedad47088a004ea860f7f0edfd21cea91a0914.tar.gz
ipxe-bcedad47088a004ea860f7f0edfd21cea91a0914.tar.xz
ipxe-bcedad47088a004ea860f7f0edfd21cea91a0914.zip
Add debugging for CNAME records.
Allow routines to be called by nmb.c
Diffstat (limited to 'src/include')
-rw-r--r--src/include/dns.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/include/dns.h b/src/include/dns.h
index 075a9413b..5b8b81f13 100644
--- a/src/include/dns.h
+++ b/src/include/dns.h
@@ -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 */