From 64011f898c1bc99183a57f21d6e099c8f4496a09 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 11 Feb 1999 22:45:54 +0000 Subject: struct proto again contains instance name (a copy of proto->cf->name). --- nest/protocol.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nest/protocol.h') diff --git a/nest/protocol.h b/nest/protocol.h index c972060..f6facea 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -20,6 +20,7 @@ struct network; struct proto_config; struct config; struct proto; +struct event; /* * Routing Protocol @@ -75,12 +76,15 @@ struct proto { struct protocol *proto; /* Protocol */ struct proto_config *cf; /* Configuration data */ pool *pool; /* Pool containing local objects */ + struct event *attn; /* "Pay attention" event */ + char *name; /* Name of this instance (== cf->name) */ unsigned debug; /* Debugging flags */ unsigned preference; /* Default route preference */ unsigned disabled; /* Manually disabled */ unsigned proto_state; /* Protocol state machine (see below) */ unsigned core_state; /* Core state machine (see below) */ + unsigned core_goal; /* State we want to reach (see below) */ 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); @@ -101,7 +105,7 @@ void proto_build(struct proto_config *); void *proto_new(struct proto_config *, unsigned size); void *proto_config_new(struct protocol *, unsigned size); -extern list proto_list, inactive_proto_list; +extern list proto_list; /* * Each protocol instance runs two different state machines: -- cgit v1.2.3