From: Ondrej Zajicek Date: Tue, 18 Apr 2023 16:57:54 +0000 (+0200) Subject: BMP: Fix reconfiguration X-Git-Tag: v2.13~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=010df43519b12e83b0ff2cba9e344cba698586bb;p=thirdparty%2Fbird.git BMP: Fix reconfiguration It is not supported, but at least it must update internal config pointer to not keep old one. --- diff --git a/proto/bmp/bmp.c b/proto/bmp/bmp.c index 23e250f8b..0ef13cd41 100644 --- a/proto/bmp/bmp.c +++ b/proto/bmp/bmp.c @@ -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 = {