diff options
author | Maria Matejka <mq@ucw.cz> | 2023-03-30 10:34:28 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-04 17:00:58 +0200 |
commit | 3a53a12af4fb300ab18052ec485e2b825808f670 (patch) | |
tree | 44b76645de9ebb937e39692a850a1225db62dc84 /nest/rt.h | |
parent | 731ec008402a6e800ceb4c1171e44852ecc4679a (diff) |
Moved channel export hooks to rt.h as the channel refactoring isn't going to take place soon
Diffstat (limited to 'nest/rt.h')
-rw-r--r-- | nest/rt.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -438,6 +438,22 @@ void rt_stop_export_common(struct rt_export_hook *hook); void rt_export_stopped(struct rt_export_hook *hook); void rt_exporter_init(struct rt_exporter *re); +/* + * Channel export hooks. To be refactored out. + */ + +int channel_preimport(struct rt_import_request *req, rte *new, rte *old); + +void channel_reload_export_bulk(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe, rte **feed, uint count); + +void rt_notify_optimal(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe); +void rt_notify_any(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe); +void rt_feed_any(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe, rte **feed, uint count); +void rt_notify_accepted(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe, rte **feed, uint count); +void rt_notify_merged(struct rt_export_request *req, const net_addr *net, struct rt_pending_export *rpe, rte **feed, uint count); + + + /* Types of route announcement, also used as flags */ #define RA_UNDEF 0 /* Undefined RA type */ #define RA_OPTIMAL 1 /* Announcement of optimal route change */ |