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/protocol.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 'nest/protocol.h')
-rw-r--r-- | nest/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/protocol.h b/nest/protocol.h index abcc505d..3b3812a5 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -217,7 +217,7 @@ struct proto { void (*neigh_notify)(struct neighbor *neigh); void (*make_tmp_attrs)(struct rte *rt, struct linpool *pool); void (*store_tmp_attrs)(struct rte *rt, struct linpool *pool); - int (*preexport)(struct proto *, struct rte **rt, struct linpool *pool); + int (*preexport)(struct channel *, struct rte **rt, struct linpool *pool); void (*reload_routes)(struct channel *); void (*feed_begin)(struct channel *, int initial); void (*feed_end)(struct channel *); |