]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
L3VPN: Setting the bgp_ext_community flags properly
authorMaria Matejka <mq@ucw.cz>
Sun, 19 May 2024 09:27:18 +0000 (11:27 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 19 May 2024 09:27:18 +0000 (11:27 +0200)
proto/l3vpn/l3vpn.c

index 8b9fb9f49f70d38afdc0faa6e39eab1b4683fef6..8d087fe61cc07c600c487f82dfb64f6feeb1d15c 100644 (file)
@@ -218,7 +218,7 @@ l3vpn_rt_notify(struct proto *P, struct channel *c0, const net_addr *n0, rte *ne
       ea_set_attr_u32(&new->attrs, &ea_gen_mpls_policy, 0, mc->label_policy);
 
       ea_set_attr(&new->attrs, EA_LITERAL_DIRECT_ADATA(
-           ea_bgp_ext_community, 0, l3vpn_export_targets(p, ecad)));
+           ea_bgp_ext_community, ea_bgp_ext_community->flags, l3vpn_export_targets(p, ecad)));
 
       /* Replace MPLS-incompatible nexthop with lookup in VRF table */
       if (!nhad_orig || !mpls_valid_nexthop(nhad_orig) && p->p.vrf)