projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9941195
)
- separate multicast payload from control messages
author
Bart Polot
<bart@net.in.tum.de>
Fri, 24 Aug 2012 16:35:57 +0000
(16:35 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Fri, 24 Aug 2012 16:35:57 +0000
(16:35 +0000)
src/mesh/gnunet-service-mesh.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh.c
b/src/mesh/gnunet-service-mesh.c
index 9db69f2f5cd53d2398afcb32b91362716188ea60..55be9ea443306e8027b9a9632d1eef227f382d41 100644
(file)
--- a/
src/mesh/gnunet-service-mesh.c
+++ b/
src/mesh/gnunet-service-mesh.c
@@
-4537,6
+4537,11
@@
queue_get_next (const struct MeshPeerInfo *peer)
break;
case GNUNET_MESSAGE_TYPE_MESH_MULTICAST:
mcast = (struct GNUNET_MESH_Multicast *) info->mesh_data->data;
+ if (GNUNET_MESSAGE_TYPE_MESH_MULTICAST != ntohs(mcast->header.type))
+ {
+ // Not a multicast payload: multicast control traffic (destroy, etc)
+ return q;
+ }
pid = ntohl (mcast->pid);
GNUNET_PEER_resolve (info->peer->id, &id);
cinfo = tunnel_get_neighbor_fc(t, &id);