summaryrefslogtreecommitdiffstats
path: root/nest/protocol.h
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/protocol.h
parent16a8ba30a97d82f8e43385d1a9b116fdb16746a8 (diff)
downloadbird-f184ea6f7e1233403d06fa4615cb9f27f9d9a839.tar
bird-f184ea6f7e1233403d06fa4615cb9f27f9d9a839.zip
Proto struct now contain (down | starting | up) state.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 9a0ea98..f138d86 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -59,6 +59,7 @@ struct proto {
unsigned debug; /* Debugging flags */
pool *pool; /* Local objects */
unsigned preference; /* Default route preference */
+ unsigned state; /* PRS_... */
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);
@@ -80,6 +81,10 @@ struct proto {
/* Hic sunt protocol-specific data */
};
+#define PRS_DOWN 0 /* Inactive */
+#define PRS_STARTING 1
+#define PRS_UP 2
+
void *proto_new(struct protocol *, unsigned size);
extern list proto_list, inactive_proto_list;