From 47b793064c25c8adcab48cacc018be1675f2448a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 17 Oct 1998 11:05:18 +0000 Subject: Solve chicken-and-egg problems with protocol startup. We now queue all inactive protocols and don't send route/interface updates to them and when they come up, we resend the whole route/interface tables privately. Removed the "scan interface list after protocol start" work-around. --- nest/protocol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nest/protocol.h') diff --git a/nest/protocol.h b/nest/protocol.h index 92bcbbe..ec4408f 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -58,6 +58,7 @@ struct proto { unsigned debug; /* Debugging flags */ pool *pool; /* Local objects */ unsigned preference; /* Default route preference */ + int ready; /* Already initialized */ void (*if_notify)(struct proto *, unsigned flags, struct iface *new, struct iface *old); void (*rt_notify)(struct proto *, struct network *net, struct rte *new, struct rte *old); @@ -79,6 +80,6 @@ struct proto { void *proto_new(struct protocol *, unsigned size); -extern list proto_list; +extern list proto_list, inactive_proto_list; #endif -- cgit v1.2.3