0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-16 18:35:19 +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
parent 02164814b4
commit 010df43519

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 = {