0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

BMP: Fix reconfiguration

It is not supported, but at least it must update internal config
pointer to not keep old one.
This commit is contained in:
Ondrej Zajicek 2023-04-18 18:57:54 +02:00 committed by Igor Putovny
parent 2f62d91b61
commit 62aa714175

View File

@ -1131,10 +1131,16 @@ bmp_shutdown(struct proto *P)
}
static int
bmp_reconfigure(struct proto *P UNUSED, struct proto_config *CF UNUSED)
bmp_reconfigure(struct proto *P, struct proto_config *CF)
{
struct bmp_proto *p = (void *) P;
const struct bmp_config *cf = (void *) CF;
log(L_WARN "Reconfiguring BMP is not supported");
return PS_UP;
p->cf = cf;
return 1;
}
struct protocol proto_bmp = {