summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-01 12:10:34 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-02 14:40:00 +0100
commit64e08775251960a2b009fc35a084610c9c4c4909 (patch)
treee481e54e3636283fed9f4ca261f272f9fb6a82af /nest/protocol.h
parent6e035a9a8c7c943ea5b58932a2bd4c9b733d91ff (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.h6
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 */