[BGP] add atribute explanation

Ondrej Zajicek santiago at crfreenet.org
Sat Mar 17 00:11:37 CET 2018


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: santiago at 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."


More information about the Bird-users mailing list