mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Proto struct now contain (down | starting | up) state.
This commit is contained in:
@@ -71,10 +71,12 @@ static void
|
||||
proto_start(struct proto *p)
|
||||
{
|
||||
rem_node(&p->n);
|
||||
p->state = PRS_STARTING;
|
||||
if (p->start)
|
||||
p->start(p);
|
||||
if_feed_baby(p);
|
||||
rt_feed_baby(p);
|
||||
p->state = PRS_UP;
|
||||
add_tail(&proto_list, &p->n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user