aboutsummaryrefslogtreecommitdiff
path: root/src/include/block_dns.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-05 08:42:12 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-05 08:42:12 +0000
commit19f38ae3d42baeb248892a781959803bc3441b74 (patch)
treed208de952910d54843e1713e40f2d68940c83e72 /src/include/block_dns.h
parent2e1efb58832578c2460a5586181b0ba321a341c3 (diff)
downloadgnunet-19f38ae3d42baeb248892a781959803bc3441b74.tar.gz
gnunet-19f38ae3d42baeb248892a781959803bc3441b74.zip
pack block, use big endian for time
Diffstat (limited to 'src/include/block_dns.h')
-rw-r--r--src/include/block_dns.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/block_dns.h b/src/include/block_dns.h
index 6be82b126..1c01754de 100644
--- a/src/include/block_dns.h
+++ b/src/include/block_dns.h
@@ -39,23 +39,23 @@ struct GNUNET_DNS_Record
39 * The descriptor for the service 39 * The descriptor for the service
40 * (a peer may provide more than one service) 40 * (a peer may provide more than one service)
41 */ 41 */
42 GNUNET_HashCode service_descriptor; 42 GNUNET_HashCode service_descriptor GNUNET_PACKED;
43 43
44 /** 44 /**
45 * When does this record expire? 45 * When does this record expire?
46 */ 46 */
47 struct GNUNET_TIME_Absolute expiration_time; 47 struct GNUNET_TIME_AbsoluteNBO expiration_time;
48 48
49 /** 49 /**
50 * Four TCP and UDP-Ports that are used by this service, big endian format 50 * Four TCP and UDP-Ports that are used by this service, big endian format
51 */ 51 */
52 uint64_t ports; 52 uint64_t ports GNUNET_PACKED;
53 53
54 /** 54 /**
55 * What connection-types (UDP, TCP, ...) are supported by the service. 55 * What connection-types (UDP, TCP, ...) are supported by the service.
56 * Contains an 'enum GNUNET_DNS_ServiceTypes' in big endian format. 56 * Contains an 'enum GNUNET_DNS_ServiceTypes' in big endian format.
57 */ 57 */
58 uint32_t service_type; 58 uint32_t service_type GNUNET_PACKED;
59}; 59};
60 60
61#endif 61#endif