aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-06-11 23:30:44 +0100
committerMichael Brown <mcb30@etherboot.org>2007-06-11 23:30:44 +0100
commitf87bc837f4d00bf716ee521db69aa75ccf96fcf8 (patch)
tree5abb6c3b337068fa36dfe3aadd59f39ac6aac5e9 /src/include
parenta74ecf3057726f18feaf48922be4421c941f8c25 (diff)
downloadipxe-f87bc837f4d00bf716ee521db69aa75ccf96fcf8.zip
ipxe-f87bc837f4d00bf716ee521db69aa75ccf96fcf8.tar.gz
ipxe-f87bc837f4d00bf716ee521db69aa75ccf96fcf8.tar.bz2
Updated DNS to use not-yet-implemented UDP data-xfer API.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/dns.h27
-rw-r--r--src/include/gpxe/resolv.h7
2 files changed, 8 insertions, 26 deletions
diff --git a/src/include/gpxe/dns.h b/src/include/gpxe/dns.h
index fca3a7a..f2249da 100644
--- a/src/include/gpxe/dns.h
+++ b/src/include/gpxe/dns.h
@@ -9,8 +9,6 @@
#include <stdint.h>
#include <gpxe/in.h>
-#include <gpxe/async.h>
-#include <gpxe/retry.h>
/*
* Constants
@@ -89,29 +87,6 @@ union dns_rr_info {
struct dns_rr_info_cname cname;
};
-/** A DNS request */
-struct dns_request {
- /** Socket address to fill in with resolved address */
- struct sockaddr *sa;
-
- /** Current query packet */
- struct dns_query query;
- /** Length of current query packet */
- struct dns_query_info *qinfo;
- /** Recursion counter */
- unsigned int recursion;
-
- /** Asynchronous operation */
- struct async async;
- /** UDP connection */
- struct udp_connection udp;
- /** Retry timer */
- struct retry_timer timer;
-};
-
-extern struct in_addr nameserver;
-
-extern int dns_resolv ( const char *name, struct sockaddr *sa,
- struct async *parent );
+extern struct sockaddr_tcpip nameserver;
#endif /* _GPXE_DNS_H */
diff --git a/src/include/gpxe/resolv.h b/src/include/gpxe/resolv.h
index 4a4de4c..772460d 100644
--- a/src/include/gpxe/resolv.h
+++ b/src/include/gpxe/resolv.h
@@ -153,6 +153,13 @@ struct resolver {
#define __resolver( resolv_order ) \
__table ( struct resolver, resolvers, resolv_order )
+extern void resolv_done ( struct resolv_interface *resolv,
+ struct sockaddr *sa, int rc );
+extern void ignore_resolv_done ( struct resolv_interface *resolv,
+ struct sockaddr *sa, int rc );
+extern struct resolv_interface_operations null_resolv_ops;
+struct resolv_interface null_resolv;
+
extern int resolv ( struct resolv_interface *resolv, const char *name,
struct sockaddr *sa );