aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp_broadcasting.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-24 09:35:37 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-24 09:35:37 +0000
commit101f5787ac60dafa175950fb714c6d4cc4906478 (patch)
tree711c8042c8b22856b0946d0c819a3520498ac274 /src/transport/plugin_transport_udp_broadcasting.c
parent6743123dcc6b37dabf2759f384a7f6ad08a08bec (diff)
downloadgnunet-101f5787ac60dafa175950fb714c6d4cc4906478.tar.gz
gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.zip
- adding return value to mst callback
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index 2935d8da3..baabf45ea 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -90,7 +90,7 @@ struct Mstv6Context
90 90
91 91
92 92
93void 93int
94broadcast_ipv6_mst_cb (void *cls, void *client, 94broadcast_ipv6_mst_cb (void *cls, void *client,
95 const struct GNUNET_MessageHeader *message) 95 const struct GNUNET_MessageHeader *message)
96{ 96{
@@ -104,7 +104,7 @@ broadcast_ipv6_mst_cb (void *cls, void *client,
104 104
105 if (GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON != 105 if (GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON !=
106 ntohs (msg->header.type)) 106 ntohs (msg->header.type))
107 return; 107 return GNUNET_OK;
108 LOG (GNUNET_ERROR_TYPE_DEBUG, 108 LOG (GNUNET_ERROR_TYPE_DEBUG,
109 "Received beacon with %u bytes from peer `%s' via address `%s'\n", 109 "Received beacon with %u bytes from peer `%s' via address `%s'\n",
110 ntohs (msg->header.size), GNUNET_i2s (&msg->sender), 110 ntohs (msg->header.size), GNUNET_i2s (&msg->sender),
@@ -128,9 +128,10 @@ broadcast_ipv6_mst_cb (void *cls, void *client,
128 ("# IPv6 multicast HELLO beacons received via udp"), 128 ("# IPv6 multicast HELLO beacons received via udp"),
129 1, GNUNET_NO); 129 1, GNUNET_NO);
130 GNUNET_free (mc); 130 GNUNET_free (mc);
131 return GNUNET_OK;
131} 132}
132 133
133void 134int
134broadcast_ipv4_mst_cb (void *cls, void *client, 135broadcast_ipv4_mst_cb (void *cls, void *client,
135 const struct GNUNET_MessageHeader *message) 136 const struct GNUNET_MessageHeader *message)
136{ 137{
@@ -143,7 +144,7 @@ broadcast_ipv4_mst_cb (void *cls, void *client,
143 144
144 if (GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON != 145 if (GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON !=
145 ntohs (msg->header.type)) 146 ntohs (msg->header.type))
146 return; 147 return GNUNET_OK;
147 LOG (GNUNET_ERROR_TYPE_DEBUG, 148 LOG (GNUNET_ERROR_TYPE_DEBUG,
148 "Received beacon with %u bytes from peer `%s' via address `%s'\n", 149 "Received beacon with %u bytes from peer `%s' via address `%s'\n",
149 ntohs (msg->header.size), GNUNET_i2s (&msg->sender), 150 ntohs (msg->header.size), GNUNET_i2s (&msg->sender),
@@ -168,6 +169,7 @@ broadcast_ipv4_mst_cb (void *cls, void *client,
168 ("# IPv4 broadcast HELLO beacons received via udp"), 169 ("# IPv4 broadcast HELLO beacons received via udp"),
169 1, GNUNET_NO); 170 1, GNUNET_NO);
170 GNUNET_free (mc); 171 GNUNET_free (mc);
172 return GNUNET_OK;
171} 173}
172 174
173void 175void