Don't send broadcast packets to the sender

This commit is contained in:
Matthias Schiffer 2013-03-18 23:38:19 +01:00
parent 4acbc99663
commit 815b446109

View file

@ -67,8 +67,10 @@ bool gmrf_iface_send(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t
bool gmrf_iface_send_bc(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len) {
gmrf_iface_t *dest_iface;
for (dest_iface = iface->net->interfaces; dest_iface; dest_iface = dest_iface->network_next)
enqueue(gmrf->mmss, iface, dest_iface, data, len);
for (dest_iface = iface->net->interfaces; dest_iface; dest_iface = dest_iface->network_next) {
if (dest_iface != iface)
enqueue(gmrf->mmss, iface, dest_iface, data, len);
}
return true;
}