aboutsummaryrefslogtreecommitdiff
path: root/src/multicast/multicast_api.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-25 13:24:15 +0000
committerGabor X Toth <*@tg-x.net>2014-07-25 13:24:15 +0000
commit30752e6cb73b6c71ad5aab392c40ac482257e410 (patch)
treee33ab995a7a56853e20d448f339b10d87cb7e32b /src/multicast/multicast_api.c
parentac2af3883bbceafd3258cad788587a70057010d9 (diff)
downloadgnunet-30752e6cb73b6c71ad5aab392c40ac482257e410.tar.gz
gnunet-30752e6cb73b6c71ad5aab392c40ac482257e410.zip
multicast: send join decision to remote peer
Diffstat (limited to 'src/multicast/multicast_api.c')
-rw-r--r--src/multicast/multicast_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multicast/multicast_api.c b/src/multicast/multicast_api.c
index 5f22741be..aa15edccf 100644
--- a/src/multicast/multicast_api.c
+++ b/src/multicast/multicast_api.c
@@ -159,7 +159,7 @@ struct GNUNET_MULTICAST_JoinHandle
159 /** 159 /**
160 * Peer identity of the member requesting join. 160 * Peer identity of the member requesting join.
161 */ 161 */
162 struct GNUNET_PeerIdentity member_peer; 162 struct GNUNET_PeerIdentity peer;
163}; 163};
164 164
165 165
@@ -232,7 +232,7 @@ group_recv_join_request (void *cls,
232 struct GNUNET_MULTICAST_JoinHandle *jh = GNUNET_malloc (sizeof (*jh)); 232 struct GNUNET_MULTICAST_JoinHandle *jh = GNUNET_malloc (sizeof (*jh));
233 jh->group = grp; 233 jh->group = grp;
234 jh->member_key = jreq->member_key; 234 jh->member_key = jreq->member_key;
235 jh->member_peer = jreq->member_peer; 235 jh->peer = jreq->peer;
236 236
237 const struct GNUNET_MessageHeader *jmsg = NULL; 237 const struct GNUNET_MessageHeader *jmsg = NULL;
238 if (sizeof (*jreq) + sizeof (*jmsg) <= ntohs (jreq->header.size)) 238 if (sizeof (*jreq) + sizeof (*jmsg) <= ntohs (jreq->header.size))
@@ -461,7 +461,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *join,
461 + relay_size + join_resp_size); 461 + relay_size + join_resp_size);
462 hdcsn->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION); 462 hdcsn->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION);
463 hdcsn->member_key = join->member_key; 463 hdcsn->member_key = join->member_key;
464 hdcsn->peer = join->member_peer; 464 hdcsn->peer = join->peer;
465 465
466 dcsn = (struct MulticastJoinDecisionMessage *) &hdcsn[1]; 466 dcsn = (struct MulticastJoinDecisionMessage *) &hdcsn[1];
467 dcsn->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION); 467 dcsn->header.type = htons (GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION);