summaryrefslogtreecommitdiff
path: root/sysdep/unix/krt.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-06-27 19:04:22 +0200
committerMaria Matejka <mq@ucw.cz>2022-06-27 19:04:24 +0200
commitbeb5f78ada79ac90f31f2c4923302c74d9ab38bf (patch)
treeb6f37568d57428d7bc9df103c84922b1076e1f5e /sysdep/unix/krt.c
parentb867c798c3e42c875311a79fe53a36d4a5bfd126 (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 'sysdep/unix/krt.c')
-rw-r--r--sysdep/unix/krt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 7c2614b1..a02cf977 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -903,12 +903,12 @@ krt_store_tmp_attrs(struct rte *rt, struct linpool *pool)
}
static int
-krt_preexport(struct proto *P, rte **new, struct linpool *pool UNUSED)
+krt_preexport(struct channel *C, rte **new, struct linpool *pool UNUSED)
{
// struct krt_proto *p = (struct krt_proto *) P;
rte *e = *new;
- if (e->attrs->src->proto == P)
+ if (e->attrs->src->proto == C->proto)
return -1;
if (!krt_capable(e))