aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/transport/plugin_transport_http.c8
-rw-r--r--src/transport/plugin_transport_tcp.c8
-rw-r--r--src/transport/plugin_transport_udp.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 905105ce3..b412b46ae 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -77,12 +77,12 @@ struct IPv4HttpAddress
77 /** 77 /**
78 * IPv4 address, in network byte order. 78 * IPv4 address, in network byte order.
79 */ 79 */
80 uint32_t ipv4_addr; 80 uint32_t ipv4_addr GNUNET_PACKED;
81 81
82 /** 82 /**
83 * Port number, in network byte order. 83 * Port number, in network byte order.
84 */ 84 */
85 uint16_t u_port; 85 uint16_t u_port GNUNET_PACKED;
86 86
87}; 87};
88 88
@@ -95,12 +95,12 @@ struct IPv6HttpAddress
95 /** 95 /**
96 * IPv6 address. 96 * IPv6 address.
97 */ 97 */
98 struct in6_addr ipv6_addr; 98 struct in6_addr ipv6_addr GNUNET_PACKED;
99 99
100 /** 100 /**
101 * Port number, in network byte order. 101 * Port number, in network byte order.
102 */ 102 */
103 uint16_t u6_port; 103 uint16_t u6_port GNUNET_PACKED;
104 104
105}; 105};
106 106
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
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 */