diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-04-18 18:57:54 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-04-18 18:57:54 +0200 |
commit | 010df43519b12e83b0ff2cba9e344cba698586bb (patch) | |
tree | 0d8d0df35fe8ff68d857cfc4d05f43ecda410461 /proto/bmp/bmp.c | |
parent | 02164814b49a3385caae0ea10aa042487c6002d2 (diff) |
BMP: Fix reconfiguration
It is not supported, but at least it must update internal config
pointer to not keep old one.
Diffstat (limited to 'proto/bmp/bmp.c')
-rw-r--r-- | proto/bmp/bmp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/proto/bmp/bmp.c b/proto/bmp/bmp.c index 23e250f8..0ef13cd4 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 = { |