aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
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/transport/plugin_transport_tcp.c
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/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 1024b8008..e79440e5e 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -43,6 +43,8 @@
43 43
44#define DEBUG_TCP_NAT GNUNET_EXTRA_LOGGING 44#define DEBUG_TCP_NAT GNUNET_EXTRA_LOGGING
45 45
46GNUNET_NETWORK_STRUCT_BEGIN
47
46/** 48/**
47 * Initial handshake message for a session. 49 * Initial handshake message for a session.
48 */ 50 */
@@ -78,7 +80,7 @@ struct TCP_NAT_ProbeMessage
78 struct GNUNET_PeerIdentity clientIdentity; 80 struct GNUNET_PeerIdentity clientIdentity;
79 81
80}; 82};
81 83GNUNET_NETWORK_STRUCT_END
82 84
83/** 85/**
84 * Context for sending a NAT probe via TCP. 86 * Context for sending a NAT probe via TCP.
@@ -118,6 +120,8 @@ struct TCPProbeContext
118}; 120};
119 121
120 122
123GNUNET_NETWORK_STRUCT_BEGIN
124
121/** 125/**
122 * Network format for IPv4 addresses. 126 * Network format for IPv4 addresses.
123 */ 127 */
@@ -152,7 +156,7 @@ struct IPv6TcpAddress
152 uint16_t t6_port GNUNET_PACKED; 156 uint16_t t6_port GNUNET_PACKED;
153 157
154}; 158};
155 159GNUNET_NETWORK_STRUCT_END
156 160
157/** 161/**
158 * Encapsulation of all of the state of the plugin. 162 * Encapsulation of all of the state of the plugin.