summaryrefslogtreecommitdiffstats
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-11 23:45:54 +0100
committerMartin Mares <mj@ucw.cz>1999-02-11 23:45:54 +0100
commit64011f898c1bc99183a57f21d6e099c8f4496a09 (patch)
tree5c76fb9b991b1682108d28848b92b6d0a614379e /nest/protocol.h
parent3b15402fd4055cb5bd66cd9ac1106ceecff9f760 (diff)
downloadbird-64011f898c1bc99183a57f21d6e099c8f4496a09.tar
bird-64011f898c1bc99183a57f21d6e099c8f4496a09.zip
struct proto again contains instance name (a copy of proto->cf->name).
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h6
1 files changed, 5 insertions, 1 deletions
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: