Commit f502d7ee authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make sure acks meet their deadline.

parent c4e6bf0e
......@@ -633,6 +633,8 @@ send_ack(struct neighbour *neigh, unsigned short nonce, unsigned short interval)
rc = start_unicast_message(neigh, MESSAGE_ACK, 2); if(rc < 0) return;
accumulate_unicast_short(neigh, nonce);
end_unicast_message(neigh, MESSAGE_ACK, 2);
/* Roughly yields a value no larger than 3/2, so this meets the deadline */
schedule_unicast_flush(roughly(interval * 6));
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment