summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-19 19:45:29 +0200
committerMartin Mares <mj@ucw.cz>1998-10-19 19:45:29 +0200
commitf184ea6f7e1233403d06fa4615cb9f27f9d9a839 (patch)
tree93d6ba41c218048364e417c012967b6fb696125f /nest/proto.c
parent16a8ba30a97d82f8e43385d1a9b116fdb16746a8 (diff)
downloadbird-f184ea6f7e1233403d06fa4615cb9f27f9d9a839.tar
bird-f184ea6f7e1233403d06fa4615cb9f27f9d9a839.zip
Proto struct now contain (down | starting | up) state.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index f142a77..0760130 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -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);
}