diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-08-18 12:45:49 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-08-18 12:45:49 +0000 |
commit | ce5e6ac370afed7b6e33740d2f31cce2c30dee14 (patch) | |
tree | 50c3057f05efae7b6e0af1b2903125d2b4fc4236 | |
parent | e0e93cddaa646c8649650431070f32949ebb0b64 (diff) | |
download | gnunet-ce5e6ac370afed7b6e33740d2f31cce2c30dee14.tar.gz gnunet-ce5e6ac370afed7b6e33740d2f31cce2c30dee14.zip |
-fix NetworkRecord/GNSRecordBlock madness
-rw-r--r-- | src/include/block_gns.h | 19 |
1 files 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 | |||
35 | */ | 35 | */ |
36 | struct GNSRecordBlock | 36 | struct GNSRecordBlock |
37 | { | 37 | { |
38 | /** | ||
39 | * the record type | ||
40 | */ | ||
41 | uint32_t type GNUNET_PACKED; | ||
42 | 38 | ||
43 | /** | 39 | /** |
44 | * expiration time of the record | 40 | * Expiration time for the DNS record; relative or absolute depends |
41 | * on 'flags', network byte order. | ||
45 | */ | 42 | */ |
46 | struct GNUNET_TIME_AbsoluteNBO expiration; | 43 | uint64_t expiration_time GNUNET_PACKED; |
47 | 44 | ||
48 | /** | 45 | /** |
49 | * length of the data | 46 | * length of the data |
50 | */ | 47 | */ |
51 | uint32_t data_length GNUNET_PACKED; | 48 | uint32_t data_size GNUNET_PACKED; |
49 | |||
50 | /** | ||
51 | * the record type | ||
52 | */ | ||
53 | uint32_t record_type GNUNET_PACKED; | ||
54 | |||
52 | 55 | ||
53 | /* record flags */ | 56 | /* record flags */ |
54 | uint32_t flags GNUNET_PACKED; | 57 | uint32_t flags GNUNET_PACKED; |
55 | 58 | ||
56 | //Class of the record? | ||
57 | |||
58 | /* followed by the record data */ | 59 | /* followed by the record data */ |
59 | }; | 60 | }; |
60 | 61 | ||