summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.h
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
committerng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
commitd41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch)
tree9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/transport/plugin_transport_udp.h
parenta0fce305c565c0937d917a92712f15e9c5736260 (diff)
uncrustify as demanded.
Diffstat (limited to 'src/transport/plugin_transport_udp.h')
-rw-r--r--src/transport/plugin_transport_udp.h46
1 files changed, 20 insertions, 26 deletions
diff --git a/src/transport/plugin_transport_udp.h b/src/transport/plugin_transport_udp.h
index cccb3ceb3..6bdc020ff 100644
--- a/src/transport/plugin_transport_udp.h
+++ b/src/transport/plugin_transport_udp.h
@@ -11,12 +11,12 @@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file transport/plugin_transport_udp.h
@@ -41,7 +41,7 @@
#include "gnunet_transport_plugin.h"
#include "transport.h"
-#define LOG(kind,...) GNUNET_log_from (kind, "transport-udp", __VA_ARGS__)
+#define LOG(kind, ...) GNUNET_log_from(kind, "transport-udp", __VA_ARGS__)
#define PLUGIN_NAME "udp"
@@ -60,8 +60,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
/**
* Network format for IPv4 addresses.
*/
-struct IPv4UdpAddress
-{
+struct IPv4UdpAddress {
/**
* Optional options and flags for this address
*/
@@ -82,8 +81,7 @@ struct IPv4UdpAddress
/**
* Network format for IPv6 addresses.
*/
-struct IPv6UdpAddress
-{
+struct IPv6UdpAddress {
/**
* Optional options and flags for this address
*/
@@ -105,8 +103,7 @@ GNUNET_NETWORK_STRUCT_END
* Either an IPv4 or IPv6 UDP address. Note that without a "length",
* one cannot tell which one of the two types this address represents.
*/
-union UdpAddress
-{
+union UdpAddress {
/**
* IPv4 case.
*/
@@ -134,9 +131,7 @@ struct PrettyPrinterContext;
/**
* Encapsulation of all of the state of the plugin.
*/
-struct Plugin
-{
-
+struct Plugin {
/**
* Our environment.
*/
@@ -302,7 +297,6 @@ struct Plugin
* Port we advertise on.
*/
uint16_t aport;
-
};
@@ -318,9 +312,9 @@ struct Plugin
* @return string representing the same address
*/
const char *
-udp_address_to_string (void *cls,
- const void *addr,
- size_t addrlen);
+udp_address_to_string(void *cls,
+ const void *addr,
+ size_t addrlen);
/**
@@ -335,22 +329,22 @@ udp_address_to_string (void *cls,
* @param network_type network type of the sender's address
*/
void
-udp_broadcast_receive (struct Plugin *plugin,
- const char *buf,
- ssize_t size,
- const union UdpAddress *udp_addr,
- size_t udp_addr_len,
- enum GNUNET_NetworkType network_type);
+udp_broadcast_receive(struct Plugin *plugin,
+ const char *buf,
+ ssize_t size,
+ const union UdpAddress *udp_addr,
+ size_t udp_addr_len,
+ enum GNUNET_NetworkType network_type);
void
-setup_broadcast (struct Plugin *plugin,
- struct sockaddr_in6 *server_addrv6,
- struct sockaddr_in *server_addrv4);
+setup_broadcast(struct Plugin *plugin,
+ struct sockaddr_in6 *server_addrv6,
+ struct sockaddr_in *server_addrv4);
void
-stop_broadcast (struct Plugin *plugin);
+stop_broadcast(struct Plugin *plugin);
/*#ifndef PLUGIN_TRANSPORT_UDP_H*/
#endif