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.c31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index db6c1fe8c..102e262ae 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -119,9 +119,18 @@ broadcast_ipv6_mst_cb (void *cls, void *client,
119 GNUNET_break (ntohl(mc->ats_address_network_type) != GNUNET_ATS_NET_UNSPECIFIED); 119 GNUNET_break (ntohl(mc->ats_address_network_type) != GNUNET_ATS_NET_UNSPECIFIED);
120 120
121 hello = (struct GNUNET_MessageHeader *) &msg[1]; 121 hello = (struct GNUNET_MessageHeader *) &msg[1];
122 plugin->env->receive (plugin->env->cls, &msg->sender, hello, 122 plugin->env->receive (plugin->env->cls,
123 (const struct GNUNET_ATS_Information *) &atsi, 2, NULL, 123 &msg->sender,
124 (const char *) &mc->addr, sizeof (mc->addr)); 124 hello,
125 NULL,
126 (const char *) &mc->addr,
127 sizeof (mc->addr));
128 plugin->env->update_address_metrics (plugin->env->cls,
129 &msg->sender,
130 (const char *) &mc->addr,
131 sizeof (mc->addr),
132 NULL,
133 (struct GNUNET_ATS_Information *) &atsi, 2);
125 134
126 GNUNET_STATISTICS_update (plugin->env->stats, 135 GNUNET_STATISTICS_update (plugin->env->stats,
127 _ 136 _
@@ -160,9 +169,19 @@ broadcast_ipv4_mst_cb (void *cls, void *client,
160 GNUNET_break (ntohl(mc->ats_address_network_type) != GNUNET_ATS_NET_UNSPECIFIED); 169 GNUNET_break (ntohl(mc->ats_address_network_type) != GNUNET_ATS_NET_UNSPECIFIED);
161 170
162 hello = (struct GNUNET_MessageHeader *) &msg[1]; 171 hello = (struct GNUNET_MessageHeader *) &msg[1];
163 plugin->env->receive (plugin->env->cls, &msg->sender, hello, 172 plugin->env->receive (plugin->env->cls,
164 (const struct GNUNET_ATS_Information *) &atsi, 2, NULL, 173 &msg->sender,
165 (const char *) &mc->addr, sizeof (mc->addr)); 174 hello,
175 NULL,
176 (const char *) &mc->addr,
177 sizeof (mc->addr));
178
179 plugin->env->update_address_metrics (plugin->env->cls,
180 &msg->sender,
181 (const char *) &mc->addr,
182 sizeof (mc->addr),
183 NULL,
184 (struct GNUNET_ATS_Information *) &atsi, 2);
166 185
167 GNUNET_STATISTICS_update (plugin->env->stats, 186 GNUNET_STATISTICS_update (plugin->env->stats,
168 _ 187 _