From e915f99e1cd4f6c90e640f7290c201633ab992f0 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 24 Sep 2023 00:24:50 +0200 Subject: L3VPN: Fix bug in reconfiguration Fields import_target / export_target link to config structures, must be updated during reconfiguration. --- proto/l3vpn/l3vpn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/l3vpn/l3vpn.c b/proto/l3vpn/l3vpn.c index 3bf0df48..38441208 100644 --- a/proto/l3vpn/l3vpn.c +++ b/proto/l3vpn/l3vpn.c @@ -431,6 +431,10 @@ l3vpn_reconfigure(struct proto *P, struct proto_config *CF) } */ + /* Update pointers to config structures */ + p->import_target = cf->import_target; + p->export_target = cf->export_target; + proto_setup_mpls_map(P, RTS_L3VPN, 1); return 1; -- cgit v1.2.3