summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp_broadcasting.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/transport/plugin_transport_udp_broadcasting.c
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
tighten formatting rules
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,
hello_size = GNUNET_HELLO_size ((struct GNUNET_HELLO_Message *) hello);
msg_size = hello_size + sizeof(struct UDP_Beacon_Message);
- if ((hello_size < (sizeof(struct GNUNET_MessageHeader)))||
+ if ((hello_size < (sizeof(struct GNUNET_MessageHeader))) ||
(msg_size > (UDP_MTU)))
return 0;
@@ -331,8 +331,7 @@ udp_ipv6_broadcast_send (void *cls)
if the scope ID is ignored, the kernel should just multicast
on ALL interfaces, which is merely slightly less efficient;
in that case, we might want to revert to only doing this
- once, and not per interface (hard to test...) */
- plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
+ once, and not per interface (hard to test...) */plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
sent = GNUNET_NETWORK_socket_sendto (plugin->sockv6, &buf, msg_size,
(const struct sockaddr *)
&plugin->ipv6_multicast_address,
@@ -346,8 +345,7 @@ udp_ipv6_broadcast_send (void *cls)
*
* This indicates that this system is IPv6 enabled, but does not
* have a valid global IPv6 address assigned
- */
- GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
+ */GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
"Network connectivity is down, cannot send beacon!\n");
}
else
@@ -492,8 +490,7 @@ iface_proc (void *cls,
* group in the normal IPv6 routing table and using the resulting
* interface; we do this for each interface, so no need to use
* zero (anymore...).
- */
- multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
+ */multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
/* Join the multicast group */
if (GNUNET_OK !=
@@ -646,4 +643,5 @@ stop_broadcast (struct Plugin *plugin)
}
}
+
/* end of plugin_transport_udp_broadcasting.c */