0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-15 13:31:54 +00:00

looks like i understood it wrong... So lets save old and change it.now, the hooks do not work, request is at wrong place and there is chaos between import and main table

This commit is contained in:
Katerina Kubecova 2024-09-04 14:42:00 +02:00
parent 344dc0773c
commit c39c47d82c
2 changed files with 3 additions and 4 deletions

View File

@ -542,7 +542,7 @@ bmp_add_table_exp_req(struct bmp_proto *p, rtable *tab)
e->hook = bmp_rt_notify_exp_req; e->hook = bmp_rt_notify_exp_req;
e->data = p; e->data = p;
p->out_req = (struct rt_export_request) { bt->out_req = (struct rt_export_request) {
.name = mb_sprintf(p->p.pool, "%s.exp_request", p->p.name), .name = mb_sprintf(p->p.pool, "%s.exp_request", p->p.name),
.r = (struct lfjour_recipient) { .r = (struct lfjour_recipient) {
.target = &p->p.loop->event_list, .target = &p->p.loop->event_list,
@ -557,7 +557,7 @@ bmp_add_table_exp_req(struct bmp_proto *p, rtable *tab)
//.dump = channel_dump_export_req, //.dump = channel_dump_export_req,
//.fed = channel_export_fed, //.fed = channel_export_fed,
}; };
rt_export_subscribe(tab, all, &p->out_req); rt_export_subscribe(tab, all, &bt->out_req);
return bt; return bt;
} }

View File

@ -76,8 +76,6 @@ struct bmp_proto {
struct lfjour_recipient proto_state_reader; // Reader of protocol states struct lfjour_recipient proto_state_reader; // Reader of protocol states
event proto_state_changed; event proto_state_changed;
int lf_jour_inited; int lf_jour_inited;
struct rt_export_request out_req;
}; };
struct bmp_peer { struct bmp_peer {
@ -101,6 +99,7 @@ struct bmp_table {
rtable *table; rtable *table;
struct bmp_table *next; struct bmp_table *next;
struct channel *channel; struct channel *channel;
struct rt_export_request out_req;
u32 uc; u32 uc;
}; };