Send successful, in-order ACK's based on link RTT

This commit is contained in:
Jeremy Lakeman 2013-08-29 16:51:50 +09:30
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();