On Wed, Mar 14, 2018 at 10:16:15PM +0100, Mattia Milani wrote: > Hello all, i want to add an atribute to bgp protocol in the update message. > > i already added it to the file attrs.c in bgp_attr_table[]. > > now i want to add this atribute to update message before send it, i read > the documentation and i follow the code from the function bgp_encode_attr > where it use the function encode of the attribute, but i didn't seen where > to configure the data to encode in the attribute. > > someone could help me understand where i can set this attribute with a > default value? i don't need to specify it in the conf file for my project.
Hi It is done in bgp_update_attrs() for 2.0.x, and in bgp_update_attrs()/bgp_create_attrs() in 1.6.x -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."