mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
Don't report error when dropping a packet due to no peers
This commit is contained in:
parent
2226a529af
commit
89f6d533cd
@ -188,9 +188,11 @@ int overlay_payload_enqueue(struct overlay_frame *p)
|
||||
|
||||
// just drop it now
|
||||
if (p->destination_count == 0){
|
||||
if (config.debug.verbose && config.debug.overlayframes)
|
||||
DEBUGF("Not transmitting, as we have no neighbours on any interface");
|
||||
return -1;
|
||||
if (config.debug.mdprequests)
|
||||
DEBUGF("Not transmitting, as we have nowhere to send it");
|
||||
// free the packet and return success.
|
||||
op_free(p);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user