/**
- * Sends an already built non-multicast message to a peer,
- * properly registrating all used resources.
+ * Sends an already built message to a peer, properly registrating
+ * all used resources.
*
* @param message Message to send. Function makes a copy of it.
* @param peer Short ID of the neighbor whom to send the message.
*
* @param cls Closure (tunnel for which to send the keepalive).
* @param tc Notification context.
- *
- * TODO: implement explicit multicast keepalive?
*/
static void
path_refresh (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
tunnel_send_client_fwd_ack (t);
return;
}
- /* Is it after unicast / multicast retransmission? */
+ /* Is it after unicast retransmission? */
switch (type)
{
case GNUNET_MESSAGE_TYPE_MESH_UNICAST:
if (NULL != peer->core_transmit)
return;
- q = queue_get_next(peer);
+ q = queue_get_next (peer);
if (NULL == q)
{
/* Might br multicast traffic already sent to this particular peer but
const struct GNUNET_MessageHeader *message)
{
struct GNUNET_MESH_TunnelKeepAlive *msg;
+ struct GNUNET_PeerIdentity id;
struct MeshTunnel *t;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "got a keepalive packet from %s\n",
tunnel_reset_timeout (t);
GNUNET_STATISTICS_update (stats, "# keepalives forwarded", 1, GNUNET_NO);
- /* FIXME tunnel_send_multicast (t, message); */
+ send_prebuilt_message (message, NULL, t);
return GNUNET_OK;
}