summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-01 11:17:35 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-01 22:22:31 +0200
commit66ccdc2a0c8f10263679e7fac37c1db1adf64b4f (patch)
tree3940cfc08f7f364aebef839fd808eb2ecb66dc46 /nest/rt.h
parentdd786e338c4adccee7077c8ecfaf56df2831ee4c (diff)
Added an indirection to the export announcement routine
There are performance reasons for this, mostly that we don't want to ping the table service routine with every import.
Diffstat (limited to 'nest/rt.h')
-rw-r--r--nest/rt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/rt.h b/nest/rt.h
index c5948512..78585c79 100644
--- a/nest/rt.h
+++ b/nest/rt.h
@@ -187,6 +187,8 @@ struct rt_import_request {
char *name;
u8 trace_routes;
+ event_list *list; /* Where to schedule announce events */
+
void (*dump_req)(struct rt_import_request *req);
void (*log_state_change)(struct rt_import_request *req, u8 state);
/* Preimport is called when the @new route is just-to-be inserted, replacing @old.
@@ -218,6 +220,7 @@ struct rt_import_hook {
u8 stale_pruning; /* Last prune started when this value was set at stale_valid */
void (*stopped)(struct rt_import_request *); /* Stored callback when import is stopped */
+ event announce_event; /* This event announces table updates */
};
struct rt_pending_export {