Timers

Entries in the tables in olsrd are kept fresh by setting and maintaining a timestamp on creation and updates. This timestamp is the sum of current time and the validity time this information is registered with. If the current timestamp is higher than the registered timestamp, the entry is said to be timed out. To check for timed out entries, tables are traversed and all timestamps are compared to current time. This operation is done regularly on a small time interval to be sure no entries are kept for much longer than their validity time. Most timeout functions are called at every scheduler poll.

Olsrd provides functions for retrieving timestamps and comparing them with current time. These functions are declared in olsr.h.



Andreas 2004-07-29