/**
* Target line on the receiving end.
*/
- uint32_t remote_line;
+ uint32_t remote_line GNUNET_PACKED;
+
+ /**
+ * The source line sending this data
+ */
+ uint32_t source_line GNUNET_PACKED;
/* followed by audio data */
mam->header.size = htons (sizeof (struct MeshAudioMessage) + ch->audio_size);
mam->header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_AUDIO);
mam->remote_line = htonl (ch->remote_line);
+ mam->source_line = htonl (ch->line->local_line);
memcpy (&mam[1], ch->audio_data, ch->audio_size);
GNUNET_free (ch->audio_data);
ch->audio_data = NULL;
(0 == memcmp (&ch->target,
&sender,
sizeof (struct GNUNET_PeerIdentity))) &&
- (NULL == ch->channel_unreliable) )
+ (NULL == ch->channel_unreliable) &&
+ (ch->remote_line == ntohl (msg->source_line)) )
break;
}
break;