mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
When sending BGP attributes, re-create the flags, so that attributes
added by filters which get the flags wrong are fixed automagically.
This commit is contained in:
parent
efcece2da3
commit
684c25d98f
@ -372,6 +372,8 @@ bgp_get_bucket(struct bgp_proto *p, ea_list *old, ea_list *tmp, int originate)
|
||||
{
|
||||
if (!bgp_attr_table[code].allow_in_ebgp && !p->is_internal)
|
||||
continue;
|
||||
/* The flags might have been zero if the attr was added by filters */
|
||||
a->flags = (a->flags & BAF_PARTIAL) | bgp_attr_table[code].expected_flags;
|
||||
}
|
||||
if (code < 32)
|
||||
seen |= 1 << code;
|
||||
|
Loading…
Reference in New Issue
Block a user