diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-27 12:46:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-27 12:46:51 +0000 |
commit | fae775b8e3ebc6e19b97156d3a3008ee91c3b64b (patch) | |
tree | 12c7d0f18bc3f1f00f356df0f493c71ee006dda3 /src/util/resolver.h | |
parent | f4c1249ba12461abe0616963959b9470a41e1de5 (diff) | |
download | gnunet-fae775b8e3ebc6e19b97156d3a3008ee91c3b64b.tar.gz gnunet-fae775b8e3ebc6e19b97156d3a3008ee91c3b64b.zip |
-fixing #2116
Diffstat (limited to 'src/util/resolver.h')
-rw-r--r-- | src/util/resolver.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/util/resolver.h b/src/util/resolver.h index eca753a55..2c0de9910 100644 --- a/src/util/resolver.h +++ b/src/util/resolver.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2009, 2012 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -32,20 +32,20 @@ | |||
32 | GNUNET_NETWORK_STRUCT_BEGIN | 32 | GNUNET_NETWORK_STRUCT_BEGIN |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Request for the resolver. Followed by either | 35 | * Request for the resolver. Followed by either the "struct sockaddr" |
36 | * the "struct sockaddr" or the 0-terminated hostname. | 36 | * or the 0-terminated hostname. |
37 | * | 37 | * |
38 | * The response will be one or more messages of type | 38 | * The response will be one or more messages of type |
39 | * RESOLVER_RESPONSE, each with the message header | 39 | * RESOLVER_RESPONSE, each with the message header immediately |
40 | * immediately followed by the requested data | 40 | * followed by the requested data (0-terminated hostname or struct |
41 | * (hostname or struct sockaddr, depending on direction). | 41 | * in[6]_addr, depending on direction). The last RESOLVER_RESPONSE |
42 | * The last RESOLVER_RESPONSE will just be a header | 42 | * will just be a header without any data (used to indicate the end of |
43 | * without any data (used to indicate the end of the list). | 43 | * the list). |
44 | */ | 44 | */ |
45 | struct GNUNET_RESOLVER_GetMessage | 45 | struct GNUNET_RESOLVER_GetMessage |
46 | { | 46 | { |
47 | /** | 47 | /** |
48 | * Type: GNUNET_MESSAGE_TYPE_STATISTICS_VALUE | 48 | * Type: GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST |
49 | */ | 49 | */ |
50 | struct GNUNET_MessageHeader header; | 50 | struct GNUNET_MessageHeader header; |
51 | 51 | ||
@@ -56,9 +56,12 @@ struct GNUNET_RESOLVER_GetMessage | |||
56 | int32_t direction GNUNET_PACKED; | 56 | int32_t direction GNUNET_PACKED; |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * Domain to use (AF_INET, AF_INET6 or AF_UNSPEC). | 59 | * Address family to use (AF_INET, AF_INET6 or AF_UNSPEC). |
60 | */ | 60 | */ |
61 | int32_t domain GNUNET_PACKED; | 61 | int32_t af GNUNET_PACKED; |
62 | |||
63 | /* followed by 0-terminated string for A/AAAA-lookup or | ||
64 | by 'struct in_addr' / 'struct in6_addr' for reverse lookup */ | ||
62 | 65 | ||
63 | }; | 66 | }; |
64 | GNUNET_NETWORK_STRUCT_END | 67 | GNUNET_NETWORK_STRUCT_END |