Expression calculation bug?

Ondrej Zajicek santiago at
Sat Dec 25 01:17:48 CET 2010

On Fri, Dec 24, 2010 at 11:23:44PM +0200, Alexander Shikoff wrote:
> Hello,
> There is possible bug in calculation of expressions.
> Let's assume that bgp_path.first is a 32-bit ASN.
> Then this line does not work:
> bgp_community.add((MyASN,bgp_path.first-bgp_path.first/65536*65536));
> P.S. I'm still using version 1.2.4. Could someone check it with 1.2.5?

This is a bug caused by low priority of dot. Already fixed in CVS, but
not yet in v1.2.5 .  Can be also workarounded by using parenthesis around
bgp_path.first (and other expressions with dot).

> It does not raise syntax error etc. but bird stops announces of prefix which 
> the adding is applied to.

There are probably runtime errors reported in your logfile.

Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3,
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <>

More information about the Bird-users mailing list