summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-09-24 00:24:50 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-04 13:12:05 +0200
commite915f99e1cd4f6c90e640f7290c201633ab992f0 (patch)
tree2ec16244dfa246392cb2baa00c243ba8a88b4acb
parentb6385decb3f9f4d4029ee7bfc2f013b495a725f8 (diff)
L3VPN: Fix bug in reconfiguration
Fields import_target / export_target link to config structures, must be updated during reconfiguration.
-rw-r--r--proto/l3vpn/l3vpn.c4
1 files changed, 4 insertions, 0 deletions
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;