From ce5e6ac370afed7b6e33740d2f31cce2c30dee14 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sat, 18 Aug 2012 12:45:49 +0000 Subject: [PATCH] -fix NetworkRecord/GNSRecordBlock madness --- src/include/block_gns.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/include/block_gns.h b/src/include/block_gns.h index ffdb294ae..61ffdd6b7 100644 --- a/src/include/block_gns.h +++ b/src/include/block_gns.h @@ -35,26 +35,27 @@ GNUNET_NETWORK_STRUCT_BEGIN */ struct GNSRecordBlock { - /** - * the record type - */ - uint32_t type GNUNET_PACKED; /** - * expiration time of the record + * Expiration time for the DNS record; relative or absolute depends + * on 'flags', network byte order. */ - struct GNUNET_TIME_AbsoluteNBO expiration; + uint64_t expiration_time GNUNET_PACKED; /** * length of the data */ - uint32_t data_length GNUNET_PACKED; + uint32_t data_size GNUNET_PACKED; + + /** + * the record type + */ + uint32_t record_type GNUNET_PACKED; + /* record flags */ uint32_t flags GNUNET_PACKED; - //Class of the record? - /* followed by the record data */ }; -- 2.25.1