api_msg.c, dns.h, dns.c: Implement DNS_DOES_NAME_CHECK option (check if name received match the name query), implement DNS_USES_STATIC_BUF (the place where copy dns payload to parse the response), return an error if there is no place for a new query, and fix some minor problems.

This commit is contained in:
fbernon
2007-11-19 22:42:01 +00:00
parent da4df1f414
commit f58515b51e
4 changed files with 209 additions and 88 deletions

View File

@@ -81,6 +81,7 @@
/* enumerated list of possible result values returned by dns_gethostname() */
typedef enum dns_result {
DNS_ERR_MEM,
DNS_QUERY_INVALID,
DNS_QUERY_QUEUED,
DNS_COMPLETE