[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30878 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30878 - gnunet/src/mesh |
Date: |
Tue, 26 Nov 2013 17:06:43 +0100 |
Author: bartpolot
Date: 2013-11-26 17:06:43 +0100 (Tue, 26 Nov 2013)
New Revision: 30878
Modified:
gnunet/src/mesh/gnunet-service-mesh_channel.c
Log:
- fix port mangling
Modified: gnunet/src/mesh/gnunet-service-mesh_channel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_channel.c 2013-11-26 15:51:16 UTC
(rev 30877)
+++ gnunet/src/mesh/gnunet-service-mesh_channel.c 2013-11-26 16:06:43 UTC
(rev 30878)
@@ -1747,7 +1747,6 @@
MESH_ChannelNumber chid;
struct MeshChannel *ch;
struct MeshClient *c;
- uint32_t port;
chid = ntohl (msg->chid);
@@ -1761,9 +1760,9 @@
channel_set_options (ch, ntohl (msg->opt));
/* Find a destination client */
- port = ntohl (msg->port);
- LOG (GNUNET_ERROR_TYPE_DEBUG, " port %u\n", port);
- c = GML_client_get_by_port (port);
+ ch->port = ntohl (msg->port);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " port %u\n", ch->port);
+ c = GML_client_get_by_port (ch->port);
if (NULL == c)
{
/* TODO send reject */
@@ -1948,8 +1947,8 @@
if (NULL == ch)
return "(NULL Channel)";
- sprintf (buf, "%s:%X (%X / %X)",
- GMT_2s (ch->t), ch->gid, ch->lid_root, ch->lid_dest);
+ sprintf (buf, "%s:%u gid:%X (%X / %X)",
+ GMT_2s (ch->t), ch->port, ch->gid, ch->lid_root, ch->lid_dest);
return buf;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30878 - gnunet/src/mesh,
gnunet <=