aboutsummaryrefslogtreecommitdiff
path: root/src/util/resolver.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-18 14:55:17 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-18 14:55:17 +0200
commitc7c6446e3ea37531b67252a452937f3578570a57 (patch)
tree25c3e77499bc2bc14bd408ae1414badced015265 /src/util/resolver.h
parent418bf5953acdba2e325528d739fb115b51b7141f (diff)
downloadgnunet-c7c6446e3ea37531b67252a452937f3578570a57.tar.gz
gnunet-c7c6446e3ea37531b67252a452937f3578570a57.zip
use unique 32-bit IDs for DNS requests to avoid random confusions, handle additional and authoritative records as well
Diffstat (limited to 'src/util/resolver.h')
-rw-r--r--src/util/resolver.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/resolver.h b/src/util/resolver.h
index 07851d052..54a1cf5fd 100644
--- a/src/util/resolver.h
+++ b/src/util/resolver.h
@@ -41,7 +41,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
41struct GNUNET_RESOLVER_GetMessage 41struct GNUNET_RESOLVER_GetMessage
42{ 42{
43 /** 43 /**
44 * Type: GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 44 * Type: #GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST
45 */ 45 */
46 struct GNUNET_MessageHeader header; 46 struct GNUNET_MessageHeader header;
47 47
@@ -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 uint16_t id GNUNET_PACKED; 63 uint32_t client_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 */
@@ -71,15 +71,15 @@ struct GNUNET_RESOLVER_GetMessage
71struct GNUNET_RESOLVER_ResponseMessage 71struct GNUNET_RESOLVER_ResponseMessage
72{ 72{
73 /** 73 /**
74 * Type: GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 74 * Type: #GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE
75 */ 75 */
76 struct GNUNET_MessageHeader header; 76 struct GNUNET_MessageHeader header;
77 77
78 /** 78 /**
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 uint16_t id GNUNET_PACKED; 82 uint32_t client_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