1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Fixes handling of 'next hop self' and 'source address' configuration

options.
This commit is contained in:
Ondrej Zajicek
2009-04-28 18:11:56 +02:00
parent a6ee026693
commit ad440a570b
4 changed files with 9 additions and 14 deletions

View File

@@ -293,7 +293,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
ASSERT(nh);
ip = *(ip_addr *) nh->u.ptr->data;
is_ll = 0;
if (ipa_equal(ip, p->local_addr))
if (ipa_equal(ip, p->source_addr))
{
is_ll = 1;
ip_ll = p->local_link;