aboutsummaryrefslogtreecommitdiff
path: root/src/util/resolver.h
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2018-06-29 00:10:08 +0200
committerlurchi <lurchi@strangeplace.net>2018-06-29 00:10:08 +0200
commite7e14740d619777613734cec9400c33cfd30fc3d (patch)
tree0a5ba01886c59709ffcc0052227ef7caa3f68aa0 /src/util/resolver.h
parent7c04b23c8c80e06257706facf74a92bfec7a9914 (diff)
downloadgnunet-e7e14740d619777613734cec9400c33cfd30fc3d.tar.gz
gnunet-e7e14740d619777613734cec9400c33cfd30fc3d.zip
Use the DNSPARSER and DNSSTUB libraries in the resolver service
We are not using the libc functions anymore for forward and backup DNS resolutions and the DNSPARSER and DNSSTUB libraries instead. This has the advantage that the APIs are asynchronous now and thus multiple DNS resolutions can be done in parallel. This breaks support for Windows and other operating systems that don't use /etc/resolv.conf for defining DNS servers. For fixing this the function lookup_dns_servers can be extended with different lookup mechanisms.
Diffstat (limited to 'src/util/resolver.h')
-rw-r--r--src/util/resolver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/resolver.h b/src/util/resolver.h
index a0f105afa..07851d052 100644
--- a/src/util/resolver.h
+++ b/src/util/resolver.h
@@ -60,7 +60,7 @@ struct GNUNET_RESOLVER_GetMessage
60 * identifies the request and is contained in the response message. The 60 * identifies the request and is contained in the response message. The
61 * client has to match response to request by this identifier. 61 * client has to match response to request by this identifier.
62 */ 62 */
63 uint32_t id GNUNET_PACKED; 63 uint16_t id GNUNET_PACKED;
64 64
65 /* followed by 0-terminated string for A/AAAA-lookup or 65 /* followed by 0-terminated string for A/AAAA-lookup or
66 by 'struct in_addr' / 'struct in6_addr' for reverse lookup */ 66 by 'struct in_addr' / 'struct in6_addr' for reverse lookup */
@@ -79,7 +79,7 @@ struct GNUNET_RESOLVER_ResponseMessage
79 * identifies the request this message responds to. The client 79 * identifies the request this message responds to. The client
80 * has to match response to request by this identifier. 80 * has to match response to request by this identifier.
81 */ 81 */
82 uint32_t id GNUNET_PACKED; 82 uint16_t id GNUNET_PACKED;
83 83
84 /* followed by 0-terminated string for response to a reverse lookup 84 /* followed by 0-terminated string for response to a reverse lookup
85 * or by 'struct in_addr' / 'struct in6_addr' for response to 85 * or by 'struct in_addr' / 'struct in6_addr' for response to