Don't send broadcast packets to the sender
This commit is contained in:
parent
4acbc99663
commit
815b446109
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
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;
|
||||
}
|
||||
|
|
Reference in a new issue