Bug in current git concerning BGP neighbor search

Ondrej Zajicek santiago at crfreenet.org
Sat Jan 8 12:15:14 CET 2011


On Fri, Jan 07, 2011 at 05:34:18PM +0100, Matthias Schiffer wrote:
> Hi,
> I noticed that the currect git version of bird always disables a BGP
> protocol instance when the neighbor address is unreachable. This is
> caused by changing the line
> if (!p->neigh)
> to
> if (!p->neigh || (p->neigh->scope == SCOPE_HOST))
> in bgp.c; while formerly, the protocol was only disabled when the
> address was invalid, the new version also considers the address invalid
> when the neighbor isn't found. This problem occurs because SCOPE_HOST is
> equivalent to 0, but the scope is set to 0 by neigh_find() when a
> neighbor isn't found; I guess it is unintended that SCOPE_HOST is the
> same as an invalid scope.

Yes. It seems to be OK to set scope to -1 on new sticky neighbor
entries (on nest/neighbor.c:169).

-- 
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110108/fd5617b5/attachment-0001.asc>


More information about the Bird-users mailing list