aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-21 10:59:53 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-21 10:59:53 +0000
commit6c9cc21d06bc8bb97d0a0b7afb4043d74098d8d5 (patch)
tree59bc42c7093ed4f8b5776bc8c9922af6ef5e1b08 /src/transport
parent461cf105fd0e7bf0eb7b7ae0481b327db44e950c (diff)
downloadgnunet-6c9cc21d06bc8bb97d0a0b7afb4043d74098d8d5.tar.gz
gnunet-6c9cc21d06bc8bb97d0a0b7afb4043d74098d8d5.zip
distinguish between beacons
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_udp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index bee725861..a97017555 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1512,7 +1512,7 @@ broadcast_ipv4_mst_cb (void *cls, void *client,
1512 (const char *) &mc->addr, sizeof (mc->addr)); 1512 (const char *) &mc->addr, sizeof (mc->addr));
1513 1513
1514 GNUNET_STATISTICS_update (plugin->env->stats, 1514 GNUNET_STATISTICS_update (plugin->env->stats,
1515 _("# HELLO beacons received via udp"), 1, 1515 _("# IPv4 broadcast HELLO beacons received via udp"), 1,
1516 GNUNET_NO); 1516 GNUNET_NO);
1517 GNUNET_free (mc); 1517 GNUNET_free (mc);
1518} 1518}
@@ -1549,7 +1549,7 @@ broadcast_ipv6_mst_cb (void *cls, void *client,
1549 (const char *) &mc->addr, sizeof (mc->addr)); 1549 (const char *) &mc->addr, sizeof (mc->addr));
1550 1550
1551 GNUNET_STATISTICS_update (plugin->env->stats, 1551 GNUNET_STATISTICS_update (plugin->env->stats,
1552 _("# HELLO beacons received via udp"), 1, 1552 _("# IPv6 multicast HELLO beacons received via udp"), 1,
1553 GNUNET_NO); 1553 GNUNET_NO);
1554 GNUNET_free (mc); 1554 GNUNET_free (mc);
1555} 1555}
@@ -2409,7 +2409,7 @@ libgnunet_plugin_transport_udp_init (void *cls)
2409 plugin->broadcast_ipv4_mst = 2409 plugin->broadcast_ipv4_mst =
2410 GNUNET_SERVER_mst_create (broadcast_ipv4_mst_cb, plugin); 2410 GNUNET_SERVER_mst_create (broadcast_ipv4_mst_cb, plugin);
2411 GNUNET_STATISTICS_update (plugin->env->stats, 2411 GNUNET_STATISTICS_update (plugin->env->stats,
2412 _("# HELLO beacons received via udp"), 1, 2412 _("# IPv4 broadcast HELLO beacons received via udp"), 1,
2413 GNUNET_NO); 2413 GNUNET_NO);
2414 plugin->select_ipv4_broadcast_task = 2414 plugin->select_ipv4_broadcast_task =
2415 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, 2415 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT,
@@ -2470,6 +2470,10 @@ libgnunet_plugin_transport_udp_init (void *cls)
2470 plugin->broadcast_ipv6 = GNUNET_YES; 2470 plugin->broadcast_ipv6 = GNUNET_YES;
2471 plugin->broadcast_ipv6_mst = 2471 plugin->broadcast_ipv6_mst =
2472 GNUNET_SERVER_mst_create (broadcast_ipv6_mst_cb, plugin); 2472 GNUNET_SERVER_mst_create (broadcast_ipv6_mst_cb, plugin);
2473
2474 GNUNET_STATISTICS_update (plugin->env->stats,
2475 _("# IPv6 multicast HELLO beacons received via udp"), 1,
2476 GNUNET_NO);
2473 plugin->select_ipv6_broadcast_task = 2477 plugin->select_ipv6_broadcast_task =
2474 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, 2478 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT,
2475 GNUNET_SCHEDULER_NO_TASK, 2479 GNUNET_SCHEDULER_NO_TASK,