1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Removes timers for stub interfaces. Also fixes some minor bugs.

This commit is contained in:
Ondrej Zajicek
2011-07-07 17:43:39 +02:00
parent 7d4e923603
commit beeda6af44
4 changed files with 50 additions and 49 deletions

View File

@@ -30,6 +30,17 @@ void tm_start(timer *, unsigned after);
void tm_stop(timer *);
void tm_dump_all(void);
static inline timer *
tm_new_set(pool *p, void (*hook)(struct timer *), void *data, unsigned rand, unsigned rec)
{
timer *t = tm_new(p);
t->hook = hook;
t->data = data;
t->randomize = rand;
t->recurrent = rec;
return t;
}
extern bird_clock_t now; /* Relative, monotonic time in seconds */
extern bird_clock_t now_real; /* Time in seconds since fixed known epoch */