mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Changed protocol declarations a bit.
This commit is contained in:
parent
33beab4f6c
commit
a5f1a60e02
@ -22,8 +22,8 @@ struct rtattr;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
struct protocol {
|
struct protocol {
|
||||||
|
node n;
|
||||||
char *name;
|
char *name;
|
||||||
unsigned type; /* ??? List values ??? */
|
|
||||||
unsigned debug; /* Default debugging flags */
|
unsigned debug; /* Default debugging flags */
|
||||||
|
|
||||||
void (*init)(struct protocol *); /* Boot time */
|
void (*init)(struct protocol *); /* Boot time */
|
||||||
@ -34,12 +34,15 @@ struct protocol {
|
|||||||
void protos_init(void);
|
void protos_init(void);
|
||||||
void protos_preconfig(void);
|
void protos_preconfig(void);
|
||||||
void protos_postconfig(void);
|
void protos_postconfig(void);
|
||||||
|
void protos_start(void);
|
||||||
|
|
||||||
|
extern list protocol_list;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Known protocols
|
* Known protocols
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern struct protocol proto_static;
|
extern struct protocol proto_device;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Routing Protocol Instance
|
* Routing Protocol Instance
|
||||||
@ -53,7 +56,7 @@ struct proto {
|
|||||||
pool *pool; /* Local objects */
|
pool *pool; /* Local objects */
|
||||||
unsigned preference; /* Default route preference */
|
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 (*rt_notify)(struct proto *, struct rte *new, struct rte *old);
|
||||||
void (*neigh_notify)(struct neighbor *neigh);
|
void (*neigh_notify)(struct neighbor *neigh);
|
||||||
void (*dump)(struct proto *); /* Debugging dump */
|
void (*dump)(struct proto *); /* Debugging dump */
|
||||||
|
Loading…
Reference in New Issue
Block a user