diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2010-06-29 06:33:59 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2010-06-29 06:33:59 +0000 |
commit | b51130e1f156917a1ddd892c645d871b84192ad6 (patch) | |
tree | 99bb781b712a7820d89c0c020fb8bc3c5bd4cc78 /src/transport/plugin_transport_udp.c | |
parent | 9748ddd31e98f2775851c8b24a735ba67d31e87a (diff) | |
download | gnunet-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_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 1f079801c..2beda31b3 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -99,12 +99,12 @@ struct IPv4UdpAddress | |||
99 | /** | 99 | /** |
100 | * IPv4 address, in network byte order. | 100 | * IPv4 address, in network byte order. |
101 | */ | 101 | */ |
102 | uint32_t ipv4_addr; | 102 | uint32_t ipv4_addr GNUNET_PACKED; |
103 | 103 | ||
104 | /** | 104 | /** |
105 | * Port number, in network byte order. | 105 | * Port number, in network byte order. |
106 | */ | 106 | */ |
107 | uint16_t u_port; | 107 | uint16_t u_port GNUNET_PACKED; |
108 | }; | 108 | }; |
109 | 109 | ||
110 | 110 | ||
@@ -116,12 +116,12 @@ struct IPv6UdpAddress | |||
116 | /** | 116 | /** |
117 | * IPv6 address. | 117 | * IPv6 address. |
118 | */ | 118 | */ |
119 | struct in6_addr ipv6_addr; | 119 | struct in6_addr ipv6_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 u6_port; | 124 | uint16_t u6_port GNUNET_PACKED; |
125 | }; | 125 | }; |
126 | 126 | ||
127 | /* Forward definition */ | 127 | /* Forward definition */ |