mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Lib: Add and use ev_new_init()
This commit is contained in:
@@ -256,9 +256,7 @@ ospf_start(struct proto *P)
|
||||
p->gr = ospf_top_new(p, P->pool);
|
||||
s_init_list(&(p->lsal));
|
||||
|
||||
p->flood_event = ev_new(P->pool);
|
||||
p->flood_event->hook = ospf_flood_event;
|
||||
p->flood_event->data = p;
|
||||
p->flood_event = ev_new_init(P->pool, ospf_flood_event, p);
|
||||
|
||||
p->log_pkt_tbf = (struct tbf){ .rate = 1, .burst = 5 };
|
||||
p->log_lsa_tbf = (struct tbf){ .rate = 4, .burst = 20 };
|
||||
|
Reference in New Issue
Block a user