mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-08 03:24:13 +00:00
Reduce and improve logging
This commit is contained in:
parent
409186eced
commit
152d46ddb6
@ -390,11 +390,6 @@ time_ms_t rhizome_voice_timeout = -1;
|
||||
int rhizome_saw_voice_traffic()
|
||||
{
|
||||
/* We are in "voice mode" for a second after sending a voice frame */
|
||||
time_ms_t now = gettime_ms();
|
||||
if (rhizome_voice_timeout < now) {
|
||||
INFO("Suppressing Rhizome due to voice traffic");
|
||||
rhizome_voice_timeout = now + 1000;
|
||||
}
|
||||
|
||||
rhizome_voice_timeout=gettime_ms()+1000;
|
||||
return 0;
|
||||
}
|
||||
|
@ -340,8 +340,8 @@ int overlay_rhizome_saw_advertisements(int i,overlay_frame *f, long long now)
|
||||
ofs++;
|
||||
break;
|
||||
}
|
||||
if (ofs+manifest_length>f->payload->length) {
|
||||
WHY("Illegal manifest length field in rhizome advertisement frame.");
|
||||
if (manifest_length>f->payload->length - ofs) {
|
||||
WHYF("Illegal manifest length field in rhizome advertisement frame %d vs %d.", manifest_length, f->payload->length - ofs);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user