aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-21 09:40:15 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-21 09:40:15 +0000
commitc4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac (patch)
tree02e313a83c4416f07fadf650d33aff09dfe46130 /src/core
parent40e5092e9a5db88b4c9b62cb341596fbf6ce1cf8 (diff)
downloadgnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.tar.gz
gnunet-c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac.zip
fixing 2012: network structure alignment now forced to be correct even on W32 using #pragma pack from gcc 4.x
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.h4
-rw-r--r--src/core/gnunet-service-core_kx.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core.h b/src/core/core.h
index b76528a8e..4942ad054 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -50,6 +50,8 @@
50#define GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND 64 50#define GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND 64
51 51
52 52
53GNUNET_NETWORK_STRUCT_BEGIN
54
53/** 55/**
54 * Message transmitted core clients to gnunet-service-core 56 * Message transmitted core clients to gnunet-service-core
55 * to start the interaction. This header is followed by 57 * to start the interaction. This header is followed by
@@ -373,6 +375,6 @@ struct ConnectMessage
373 struct GNUNET_PeerIdentity peer; 375 struct GNUNET_PeerIdentity peer;
374 376
375}; 377};
376 378GNUNET_NETWORK_STRUCT_END
377#endif 379#endif
378/* end of core.h */ 380/* end of core.h */
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 63dd6b7ee..38a5af9a4 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -62,6 +62,8 @@
62#define MAX_SET_KEY_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) 62#define MAX_SET_KEY_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
63 63
64 64
65GNUNET_NETWORK_STRUCT_BEGIN
66
65/** 67/**
66 * We're sending an (encrypted) PING to the other peer to check if he 68 * We're sending an (encrypted) PING to the other peer to check if he
67 * can decrypt. The other peer should respond with a PONG with the 69 * can decrypt. The other peer should respond with a PONG with the
@@ -213,7 +215,7 @@ struct EncryptedMessage
213 struct GNUNET_TIME_AbsoluteNBO timestamp; 215 struct GNUNET_TIME_AbsoluteNBO timestamp;
214 216
215}; 217};
216 218GNUNET_NETWORK_STRUCT_END
217/** 219/**
218 * Number of bytes (at the beginning) of "struct EncryptedMessage" 220 * Number of bytes (at the beginning) of "struct EncryptedMessage"
219 * that are NOT encrypted. 221 * that are NOT encrypted.