From 66ccdc2a0c8f10263679e7fac37c1db1adf64b4f Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 1 Sep 2022 11:17:35 +0200 Subject: 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. --- nest/rt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nest/rt.h') 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 { -- cgit v1.2.3