Use struct sockaddr rather than struct sockaddr_tcpip

Tidy up code
This commit is contained in:
Michael Brown
2007-01-18 03:35:00 +00:00
parent 6601a7da6a
commit 99e58865c7
2 changed files with 23 additions and 14 deletions

View File

@@ -89,21 +89,27 @@ 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;
struct sockaddr_tcpip *st;
struct async async;
/** 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 int dns_resolv ( const char *name, struct sockaddr_tcpip *st,
extern int dns_resolv ( const char *name, struct sockaddr *sa,
struct async *parent );
#endif /* _GPXE_DNS_H */