From 0929bef05d34b31b0b75ff3b419153077fae68a0 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Wed, 27 Jun 2012 11:49:24 +0000 Subject: [PATCH] -fix bigendian --- src/include/gnunet_dnsparser_lib.h | 44 +++++++++++++++--------------- 1 file 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 #elif __BYTE_ORDER == __BIG_ENDIAN /** - * See GNUNET_DNSPARSER_RETURN_CODE_ defines. + * query:0, response:1 */ - unsigned int return_code : 4 GNUNET_PACKED; + unsigned int query_or_response : 1 GNUNET_PACKED; /** - * See RFC 4035. + * See GNUNET_DNSPARSER_OPCODE_ defines. */ - unsigned int checking_disabled : 1 GNUNET_PACKED; + unsigned int opcode : 4 GNUNET_PACKED; /** - * Response has been cryptographically verified, RFC 4035. + * Set to 1 if this is an authoritative answer */ - unsigned int authenticated_data : 1 GNUNET_PACKED; + unsigned int authoritative_answer : 1 GNUNET_PACKED; /** - * Always zero. + * Set to 1 if message is truncated */ - unsigned int zero : 1 GNUNET_PACKED; + unsigned int message_truncated : 1 GNUNET_PACKED; /** - * Set to 1 if recursion is available (server -> client) + * Set to 1 if recursion is desired (client -> server) */ - unsigned int recursion_available : 1 GNUNET_PACKED; + unsigned int recursion_desired : 1 GNUNET_PACKED; + /** - * Set to 1 if recursion is desired (client -> server) + * Set to 1 if recursion is available (server -> client) */ - unsigned int recursion_desired : 1 GNUNET_PACKED; + unsigned int recursion_available : 1 GNUNET_PACKED; /** - * Set to 1 if message is truncated + * Always zero. */ - unsigned int message_truncated : 1 GNUNET_PACKED; + unsigned int zero : 1 GNUNET_PACKED; /** - * Set to 1 if this is an authoritative answer + * Response has been cryptographically verified, RFC 4035. */ - unsigned int authoritative_answer : 1 GNUNET_PACKED; + unsigned int authenticated_data : 1 GNUNET_PACKED; /** - * See GNUNET_DNSPARSER_OPCODE_ defines. + * See RFC 4035. */ - unsigned int opcode : 4 GNUNET_PACKED; + unsigned int checking_disabled : 1 GNUNET_PACKED; /** - * query:0, response:1 - */ - unsigned int query_or_response : 1 GNUNET_PACKED; - + * See GNUNET_DNSPARSER_RETURN_CODE_ defines. + */ + unsigned int return_code : 4 GNUNET_PACKED; #else #error byteorder undefined #endif -- 2.25.1