[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22340 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22340 - gnunet/src/include |
Date: |
Wed, 27 Jun 2012 13:18:54 +0200 |
Author: grothoff
Date: 2012-06-27 13:18:54 +0200 (Wed, 27 Jun 2012)
New Revision: 22340
Modified:
gnunet/src/include/gnunet_dnsparser_lib.h
Log:
-fixing the schanzenbug
Modified: gnunet/src/include/gnunet_dnsparser_lib.h
===================================================================
--- gnunet/src/include/gnunet_dnsparser_lib.h 2012-06-27 10:42:49 UTC (rev
22339)
+++ gnunet/src/include/gnunet_dnsparser_lib.h 2012-06-27 11:18:54 UTC (rev
22340)
@@ -79,6 +79,7 @@
*/
struct GNUNET_DNSPARSER_Flags
{
+#if __BYTE_ORDER == __LITTLE_ENDIAN
/**
* Set to 1 if recursion is desired (client -> server)
*/
@@ -128,7 +129,62 @@
* Set to 1 if recursion is available (server -> client)
*/
unsigned int recursion_available : 1 GNUNET_PACKED;
+#elif __BYTE_ORDER == __BIG_ENDIAN
+ /**
+ * See GNUNET_DNSPARSER_RETURN_CODE_ defines.
+ */
+ unsigned int return_code : 4 GNUNET_PACKED;
+
+ /**
+ * See RFC 4035.
+ */
+ unsigned int checking_disabled : 1 GNUNET_PACKED;
+
+ /**
+ * Response has been cryptographically verified, RFC 4035.
+ */
+ unsigned int authenticated_data : 1 GNUNET_PACKED;
+
+ /**
+ * Always zero.
+ */
+ unsigned int zero : 1 GNUNET_PACKED;
+
+ /**
+ * Set to 1 if recursion is available (server -> client)
+ */
+ unsigned int recursion_available : 1 GNUNET_PACKED;
+
+ /**
+ * Set to 1 if recursion is desired (client -> server)
+ */
+ unsigned int recursion_desired : 1 GNUNET_PACKED;
+
+ /**
+ * Set to 1 if message is truncated
+ */
+ unsigned int message_truncated : 1 GNUNET_PACKED;
+
+ /**
+ * Set to 1 if this is an authoritative answer
+ */
+ unsigned int authoritative_answer : 1 GNUNET_PACKED;
+
+ /**
+ * See GNUNET_DNSPARSER_OPCODE_ defines.
+ */
+ unsigned int opcode : 4 GNUNET_PACKED;
+
+ /**
+ * query:0, response:1
+ */
+ unsigned int query_or_response : 1 GNUNET_PACKED;
+
+#else
+ #error byteorder undefined
+#endif
+
} GNUNET_GCC_STRUCT_LAYOUT;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22340 - gnunet/src/include,
gnunet <=