]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Maintain valid route attribute flags even in local tables
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 20 Feb 2024 16:39:05 +0000 (17:39 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 20 Feb 2024 16:39:05 +0000 (17:39 +0100)
commit2d0652dd1088395c50df8fe1a99f1111b44688c6
tree1a4353a3328324b0533e55d0ba926669d9d2fc6d
parent44a16bff6cbf3f5ae8db21ffcec602bc51295d0a
BGP: Maintain valid route attribute flags even in local tables

BGP route attributes have flags (Optional, Transitive) that are validated
on decode and set to valid value on export. But if such attribute is
modified by filter or set internally by BGP during import, then its flags
would be zero in local tables. That usually does not matter, as they are
not used locally and they were fixed on export, but invalid flags leaked
in BMP and MRT dumps.

Keep route attribute flags set to valid values even when set by filters
or modified by BGP.
proto/bgp/attrs.c
proto/bgp/config.Y