diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-27 19:04:22 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-27 19:04:24 +0200 |
commit | beb5f78ada79ac90f31f2c4923302c74d9ab38bf (patch) | |
tree | b6f37568d57428d7bc9df103c84922b1076e1f5e /proto/bgp/bgp.h | |
parent | b867c798c3e42c875311a79fe53a36d4a5bfd126 (diff) |
Preexport callback now takes the channel instead of protocol as argument
Passing protocol to preexport was in fact a historical relic from the
old times when channels weren't a thing. Refactoring that to match
current extensibility needs.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 4969c0b9..7cd1c27d 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -589,7 +589,7 @@ int bgp_rte_mergable(rte *pri, rte *sec); int bgp_rte_recalculate(rtable *table, net *net, rte *new, rte *old, rte *old_best); struct rte *bgp_rte_modify_stale(struct rte *r, struct linpool *pool); void bgp_rt_notify(struct proto *P, struct channel *C, net *n, rte *new, rte *old); -int bgp_preexport(struct proto *, struct rte **, struct linpool *); +int bgp_preexport(struct channel *, struct rte **, struct linpool *); int bgp_get_attr(const struct eattr *e, byte *buf, int buflen); void bgp_get_route_info(struct rte *, byte *buf); int bgp_total_aigp_metric_(rte *e, u64 *metric, const struct adata **ad); |