diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-28 14:40:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-28 14:40:18 +0000 |
commit | 777d9cd68b19282fdc5b5e22ba93710dc3424ffd (patch) | |
tree | 39b24588b5e11a7d10cd3e5f4575e2f4a2a0fa2b /src/transport/plugin_transport_udp.h | |
parent | cc972265917834276d78278f56718ee6ef6b86fa (diff) | |
download | gnunet-777d9cd68b19282fdc5b5e22ba93710dc3424ffd.tar.gz gnunet-777d9cd68b19282fdc5b5e22ba93710dc3424ffd.zip |
-cleaning up UDP broadcast code, preparing for cryogenic
Diffstat (limited to 'src/transport/plugin_transport_udp.h')
-rw-r--r-- | src/transport/plugin_transport_udp.h | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/src/transport/plugin_transport_udp.h b/src/transport/plugin_transport_udp.h index fe5a47285..0ca596861 100644 --- a/src/transport/plugin_transport_udp.h +++ b/src/transport/plugin_transport_udp.h | |||
@@ -222,42 +222,21 @@ struct Plugin | |||
222 | struct GNUNET_TIME_Relative broadcast_interval; | 222 | struct GNUNET_TIME_Relative broadcast_interval; |
223 | 223 | ||
224 | /** | 224 | /** |
225 | * Broadcast with IPv4 | ||
226 | */ | ||
227 | int broadcast_ipv4; | ||
228 | |||
229 | /** | ||
230 | * Broadcast with IPv6 | ||
231 | */ | ||
232 | int broadcast_ipv6; | ||
233 | |||
234 | |||
235 | /** | ||
236 | * Tokenizer for inbound messages. | 225 | * Tokenizer for inbound messages. |
237 | */ | 226 | */ |
238 | struct GNUNET_SERVER_MessageStreamTokenizer *broadcast_ipv6_mst; | 227 | struct GNUNET_SERVER_MessageStreamTokenizer *broadcast_ipv6_mst; |
239 | struct GNUNET_SERVER_MessageStreamTokenizer *broadcast_ipv4_mst; | 228 | struct GNUNET_SERVER_MessageStreamTokenizer *broadcast_ipv4_mst; |
240 | 229 | ||
241 | /** | 230 | /** |
242 | * ID of select broadcast task | ||
243 | */ | ||
244 | GNUNET_SCHEDULER_TaskIdentifier send_ipv4_broadcast_task; | ||
245 | |||
246 | /** | ||
247 | * ID of select broadcast task | ||
248 | */ | ||
249 | GNUNET_SCHEDULER_TaskIdentifier send_ipv6_broadcast_task; | ||
250 | |||
251 | /** | ||
252 | * IPv6 multicast address | 231 | * IPv6 multicast address |
253 | */ | 232 | */ |
254 | struct sockaddr_in6 ipv6_multicast_address; | 233 | struct sockaddr_in6 ipv6_multicast_address; |
255 | 234 | ||
256 | /** | 235 | /** |
257 | * DLL of IPv4 broadcast addresses | 236 | * DLL of broadcast addresses |
258 | */ | 237 | */ |
259 | struct BroadcastAddress *ipv4_broadcast_tail; | 238 | struct BroadcastAddress *broadcast_tail; |
260 | struct BroadcastAddress *ipv4_broadcast_head; | 239 | struct BroadcastAddress *broadcast_head; |
261 | 240 | ||
262 | /** | 241 | /** |
263 | * Is IPv6 enabled: GNUNET_YES or GNUNET_NO | 242 | * Is IPv6 enabled: GNUNET_YES or GNUNET_NO |