[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bird-users
Subject:    Re: [BGP] add atribute explanation
From:       Ondrej Zajicek <santiago () crfreenet ! org>
Date:       2018-03-16 23:11:37
Message-ID: 20180316231137.pg67mvnmgjuutndb () feanor ! crfreenet ! org
[Download RAW message or body]

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@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."
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic