mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-13 05:43:07 +00:00
Send successful, in-order ACK's based on link RTT
This commit is contained in:
parent
bf4269e98e
commit
f06c203488
@ -964,8 +964,11 @@ int link_state_ack_soon(struct subscriber *subscriber){
|
||||
RETURN(0);
|
||||
|
||||
time_ms_t now = gettime_ms();
|
||||
if (neighbour->using_us && neighbour->next_neighbour_update > now + 80){
|
||||
neighbour->next_neighbour_update = now + 80;
|
||||
if (neighbour->using_us
|
||||
&& subscriber->reachable & REACHABLE_DIRECT
|
||||
&& subscriber->destination){
|
||||
if (neighbour->next_neighbour_update > now + subscriber->destination->min_rtt)
|
||||
neighbour->next_neighbour_update = now + subscriber->destination->min_rtt;
|
||||
}
|
||||
update_alarm(neighbour->next_neighbour_update);
|
||||
OUT();
|
||||
|
Loading…
x
Reference in New Issue
Block a user