diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-27 11:49:24 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-27 11:49:24 +0000 |
commit | 0929bef05d34b31b0b75ff3b419153077fae68a0 (patch) | |
tree | 87cf7c80baf09ed409415ada71edbe6dc29400b4 /src/include/gnunet_dnsparser_lib.h | |
parent | 1e9b958a78f4c3f4b971dff95b4c840fff63858c (diff) | |
download | gnunet-0929bef05d34b31b0b75ff3b419153077fae68a0.tar.gz gnunet-0929bef05d34b31b0b75ff3b419153077fae68a0.zip |
-fix bigendian
Diffstat (limited to 'src/include/gnunet_dnsparser_lib.h')
-rw-r--r-- | src/include/gnunet_dnsparser_lib.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index a3a77edf2..4cc8fc8d2 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -132,55 +132,55 @@ struct GNUNET_DNSPARSER_Flags | |||
132 | #elif __BYTE_ORDER == __BIG_ENDIAN | 132 | #elif __BYTE_ORDER == __BIG_ENDIAN |
133 | 133 | ||
134 | /** | 134 | /** |
135 | * See GNUNET_DNSPARSER_RETURN_CODE_ defines. | 135 | * query:0, response:1 |
136 | */ | 136 | */ |
137 | unsigned int return_code : 4 GNUNET_PACKED; | 137 | unsigned int query_or_response : 1 GNUNET_PACKED; |
138 | 138 | ||
139 | /** | 139 | /** |
140 | * See RFC 4035. | 140 | * See GNUNET_DNSPARSER_OPCODE_ defines. |
141 | */ | 141 | */ |
142 | unsigned int checking_disabled : 1 GNUNET_PACKED; | 142 | unsigned int opcode : 4 GNUNET_PACKED; |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * Response has been cryptographically verified, RFC 4035. | 145 | * Set to 1 if this is an authoritative answer |
146 | */ | 146 | */ |
147 | unsigned int authenticated_data : 1 GNUNET_PACKED; | 147 | unsigned int authoritative_answer : 1 GNUNET_PACKED; |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * Always zero. | 150 | * Set to 1 if message is truncated |
151 | */ | 151 | */ |
152 | unsigned int zero : 1 GNUNET_PACKED; | 152 | unsigned int message_truncated : 1 GNUNET_PACKED; |
153 | 153 | ||
154 | /** | 154 | /** |
155 | * Set to 1 if recursion is available (server -> client) | 155 | * Set to 1 if recursion is desired (client -> server) |
156 | */ | 156 | */ |
157 | unsigned int recursion_available : 1 GNUNET_PACKED; | 157 | unsigned int recursion_desired : 1 GNUNET_PACKED; |
158 | 158 | ||
159 | |||
159 | /** | 160 | /** |
160 | * Set to 1 if recursion is desired (client -> server) | 161 | * Set to 1 if recursion is available (server -> client) |
161 | */ | 162 | */ |
162 | unsigned int recursion_desired : 1 GNUNET_PACKED; | 163 | unsigned int recursion_available : 1 GNUNET_PACKED; |
163 | 164 | ||
164 | /** | 165 | /** |
165 | * Set to 1 if message is truncated | 166 | * Always zero. |
166 | */ | 167 | */ |
167 | unsigned int message_truncated : 1 GNUNET_PACKED; | 168 | unsigned int zero : 1 GNUNET_PACKED; |
168 | 169 | ||
169 | /** | 170 | /** |
170 | * Set to 1 if this is an authoritative answer | 171 | * Response has been cryptographically verified, RFC 4035. |
171 | */ | 172 | */ |
172 | unsigned int authoritative_answer : 1 GNUNET_PACKED; | 173 | unsigned int authenticated_data : 1 GNUNET_PACKED; |
173 | 174 | ||
174 | /** | 175 | /** |
175 | * See GNUNET_DNSPARSER_OPCODE_ defines. | 176 | * See RFC 4035. |
176 | */ | 177 | */ |
177 | unsigned int opcode : 4 GNUNET_PACKED; | 178 | unsigned int checking_disabled : 1 GNUNET_PACKED; |
178 | 179 | ||
179 | /** | 180 | /** |
180 | * query:0, response:1 | 181 | * See GNUNET_DNSPARSER_RETURN_CODE_ defines. |
181 | */ | 182 | */ |
182 | unsigned int query_or_response : 1 GNUNET_PACKED; | 183 | unsigned int return_code : 4 GNUNET_PACKED; |
183 | |||
184 | #else | 184 | #else |
185 | #error byteorder undefined | 185 | #error byteorder undefined |
186 | #endif | 186 | #endif |