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 /nest/rt-show.c | |
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 'nest/rt-show.c')
-rw-r--r-- | nest/rt-show.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-show.c b/nest/rt-show.c index f8b7ba51..7639e5f7 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -154,7 +154,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d) else if (d->export_mode) { struct proto *ep = ec->proto; - int ic = ep->preexport ? ep->preexport(ep, &e, c->show_pool) : 0; + int ic = ep->preexport ? ep->preexport(ec, &e, c->show_pool) : 0; if (ec->ra_mode == RA_OPTIMAL || ec->ra_mode == RA_MERGED) pass = 1; |