summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-06-03 08:38:06 +0000
committerMartin Mares <mj@ucw.cz>1998-06-03 08:38:06 +0000
commita5f1a60e0254871c3285aabde372f5a6790c19c3 (patch)
tree59dfbffc816c48aa12ee923991dccc0dacb63137 /nest
parent33beab4f6c7904204a5116b4eb4cbed5f859f24a (diff)
Changed protocol declarations a bit.
Diffstat (limited to 'nest')
-rw-r--r--nest/protocol.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 45776ecb..7fe18716 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -22,8 +22,8 @@ struct rtattr;
*/
struct protocol {
+ node n;
char *name;
- unsigned type; /* ??? List values ??? */
unsigned debug; /* Default debugging flags */
void (*init)(struct protocol *); /* Boot time */
@@ -34,12 +34,15 @@ struct protocol {
void protos_init(void);
void protos_preconfig(void);
void protos_postconfig(void);
+void protos_start(void);
+
+extern list protocol_list;
/*
* Known protocols
*/
-extern struct protocol proto_static;
+extern struct protocol proto_device;
/*
* Routing Protocol Instance
@@ -53,7 +56,7 @@ struct proto {
pool *pool; /* Local objects */
unsigned preference; /* Default route preference */
- void (*if_notify)(struct proto *, struct iface *new, struct iface *old);
+ void (*if_notify)(struct proto *, unsigned flags, struct iface *new, struct iface *old);
void (*rt_notify)(struct proto *, struct rte *new, struct rte *old);
void (*neigh_notify)(struct neighbor *neigh);
void (*dump)(struct proto *); /* Debugging dump */