aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2010-06-29 06:33:59 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2010-06-29 06:33:59 +0000
commitb51130e1f156917a1ddd892c645d871b84192ad6 (patch)
tree99bb781b712a7820d89c0c020fb8bc3c5bd4cc78 /src/transport/plugin_transport_tcp.c
parent9748ddd31e98f2775851c8b24a735ba67d31e87a (diff)
downloadgnunet-b51130e1f156917a1ddd892c645d871b84192ad6.tar.gz
gnunet-b51130e1f156917a1ddd892c645d871b84192ad6.zip
Remove the 2 padding bytes (that are currently filled with junk) at the end of the tcp/udp/http transport addresses.
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 2737003ab..6ac539ccd 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -116,12 +116,12 @@ struct IPv4TcpAddress
116 /** 116 /**
117 * IPv4 address, in network byte order. 117 * IPv4 address, in network byte order.
118 */ 118 */
119 uint32_t ipv4_addr; 119 uint32_t ipv4_addr GNUNET_PACKED;
120 120
121 /** 121 /**
122 * Port number, in network byte order. 122 * Port number, in network byte order.
123 */ 123 */
124 uint16_t t_port; 124 uint16_t t_port GNUNET_PACKED;
125 125
126}; 126};
127 127
@@ -134,12 +134,12 @@ struct IPv6TcpAddress
134 /** 134 /**
135 * IPv6 address. 135 * IPv6 address.
136 */ 136 */
137 struct in6_addr ipv6_addr; 137 struct in6_addr ipv6_addr GNUNET_PACKED;
138 138
139 /** 139 /**
140 * Port number, in network byte order. 140 * Port number, in network byte order.
141 */ 141 */
142 uint16_t t6_port; 142 uint16_t t6_port GNUNET_PACKED;
143 143
144}; 144};
145 145