summaryrefslogtreecommitdiff
path: root/sysdep/unix/krt.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-10-05 15:17:51 +0200
committerMaria Matejka <mq@ucw.cz>2022-10-05 15:17:51 +0200
commit1e01721525032bf3608aa457cafde58543b8a977 (patch)
treed73f8020f23615dcda6f4acbb10fdb17e338cb64 /sysdep/unix/krt.c
parent7911148b22a9efb1fd200b23e3c71cb1df3a0620 (diff)
parentdc9351d326b9d2d8bcb7e9a0e5126878c2b02762 (diff)
Merge commit 'dc9351d3' into HEAD
Diffstat (limited to 'sysdep/unix/krt.c')
-rw-r--r--sysdep/unix/krt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 080c3a03..b0033a65 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -835,6 +835,10 @@ krt_postconfig(struct proto_config *CF)
krt_sys_postconfig(cf);
}
+struct rte_owner_class krt_rte_owner_class = {
+ .rte_better = krt_rte_better,
+};
+
static struct proto *
krt_init(struct proto_config *CF)
{
@@ -848,7 +852,8 @@ krt_init(struct proto_config *CF)
p->p.if_notify = krt_if_notify;
p->p.reload_routes = krt_reload_routes;
p->p.feed_end = krt_feed_end;
- p->p.rte_better = krt_rte_better;
+
+ p->p.sources.class = &krt_rte_owner_class;
krt_sys_init(p);
return &p->p;