diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-08-22 15:28:05 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-08-22 15:28:05 +0200 |
commit | 5121101136cb80151a9361c63dc4822afeb44eef (patch) | |
tree | 2bcf923fe58bf38386ee4693882d5a09e9a40648 /nest/proto.c | |
parent | d2dbe854631813eae9fbf3e264ced4460ea4c432 (diff) | |
parent | 4558adabfbbe3696156d20767168010d6238f434 (diff) |
Merge branch 'bmp'
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nest/proto.c b/nest/proto.c index 885a0b75..a5325705 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -179,6 +179,7 @@ proto_add_channel(struct proto *p, struct channel_config *cf) c->merge_limit = cf->merge_limit; c->in_keep_filtered = cf->in_keep_filtered; c->rpki_reload = cf->rpki_reload; + c->bmp_hack = cf->bmp_hack; c->channel_state = CS_DOWN; c->export_state = ES_DOWN; @@ -523,7 +524,7 @@ channel_setup_in_table(struct channel *c) cf->addr_type = c->net_type; cf->internal = 1; - c->in_table = rt_setup(c->proto->pool, cf); + c->in_table = cf->table = rt_setup(c->proto->pool, cf); c->reload_event = ev_new_init(c->proto->pool, channel_reload_loop, c); } @@ -574,7 +575,8 @@ channel_do_up(struct channel *c) static void channel_do_flush(struct channel *c) { - rt_schedule_prune(c->table); + if (!c->bmp_hack) + rt_schedule_prune(c->table); c->gr_wait = 0; if (c->gr_lock) |