diff options
author | Maria Matejka <mq@ucw.cz> | 2023-02-01 12:10:34 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-02-02 14:40:00 +0100 |
commit | 64e08775251960a2b009fc35a084610c9c4c4909 (patch) | |
tree | e481e54e3636283fed9f4ca261f272f9fb6a82af /nest/protocol.h | |
parent | 6e035a9a8c7c943ea5b58932a2bd4c9b733d91ff (diff) |
Proto: Adding a list of associated neighbors
This makes for safer and faster pruning and notifying as protocol now on
its shutdown prunes only its neighbors and nothing else.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r-- | nest/protocol.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h index fef2cb91..9fbe9158 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -9,9 +9,10 @@ #ifndef _BIRD_PROTOCOL_H_ #define _BIRD_PROTOCOL_H_ -#include "lib/lists.h" +#include "lib/tlists.h" #include "lib/resource.h" #include "lib/event.h" +#include "nest/iface.h" #include "nest/route.h" #include "conf/conf.h" @@ -169,8 +170,9 @@ struct proto { struct channel *main_channel; /* Primary channel */ struct rte_src *main_source; /* Primary route source */ struct iface *vrf; /* Related VRF instance, NULL if global */ + TLIST_LIST(proto_neigh) neighbors; /* List of neighbor structures */ - const char *name; /* Name of this instance (== cf->name) */ + const char *name; /* Name of this instance (== cf->name) */ u32 debug; /* Debugging flags */ u32 mrtdump; /* MRTDump flags */ uint active_channels; /* Number of active channels */ |