1
0
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:
Martin Mares
1998-10-19 17:45:29 +00:00
parent 16a8ba30a9
commit f184ea6f7e
2 changed files with 7 additions and 0 deletions

View File

@@ -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);
}