aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp_broadcasting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index d8fdfe886..c85124b68 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -223,7 +223,7 @@ prepare_beacon (struct Plugin *plugin,
223 hello_size = GNUNET_HELLO_size ((struct GNUNET_HELLO_Message *) hello); 223 hello_size = GNUNET_HELLO_size ((struct GNUNET_HELLO_Message *) hello);
224 msg_size = hello_size + sizeof(struct UDP_Beacon_Message); 224 msg_size = hello_size + sizeof(struct UDP_Beacon_Message);
225 225
226 if ((hello_size < (sizeof(struct GNUNET_MessageHeader)))|| 226 if ((hello_size < (sizeof(struct GNUNET_MessageHeader))) ||
227 (msg_size > (UDP_MTU))) 227 (msg_size > (UDP_MTU)))
228 return 0; 228 return 0;
229 229
@@ -331,8 +331,7 @@ udp_ipv6_broadcast_send (void *cls)
331 if the scope ID is ignored, the kernel should just multicast 331 if the scope ID is ignored, the kernel should just multicast
332 on ALL interfaces, which is merely slightly less efficient; 332 on ALL interfaces, which is merely slightly less efficient;
333 in that case, we might want to revert to only doing this 333 in that case, we might want to revert to only doing this
334 once, and not per interface (hard to test...) */ 334 once, and not per interface (hard to test...) */plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
335 plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
336 sent = GNUNET_NETWORK_socket_sendto (plugin->sockv6, &buf, msg_size, 335 sent = GNUNET_NETWORK_socket_sendto (plugin->sockv6, &buf, msg_size,
337 (const struct sockaddr *) 336 (const struct sockaddr *)
338 &plugin->ipv6_multicast_address, 337 &plugin->ipv6_multicast_address,
@@ -346,8 +345,7 @@ udp_ipv6_broadcast_send (void *cls)
346 * 345 *
347 * This indicates that this system is IPv6 enabled, but does not 346 * This indicates that this system is IPv6 enabled, but does not
348 * have a valid global IPv6 address assigned 347 * have a valid global IPv6 address assigned
349 */ 348 */GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
350 GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
351 "Network connectivity is down, cannot send beacon!\n"); 349 "Network connectivity is down, cannot send beacon!\n");
352 } 350 }
353 else 351 else
@@ -492,8 +490,7 @@ iface_proc (void *cls,
492 * group in the normal IPv6 routing table and using the resulting 490 * group in the normal IPv6 routing table and using the resulting
493 * interface; we do this for each interface, so no need to use 491 * interface; we do this for each interface, so no need to use
494 * zero (anymore...). 492 * zero (anymore...).
495 */ 493 */multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
496 multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
497 494
498 /* Join the multicast group */ 495 /* Join the multicast group */
499 if (GNUNET_OK != 496 if (GNUNET_OK !=
@@ -646,4 +643,5 @@ stop_broadcast (struct Plugin *plugin)
646 } 643 }
647} 644}
648 645
646
649/* end of plugin_transport_udp_broadcasting.c */ 647/* end of plugin_transport_udp_broadcasting.c */