0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Allow 'third party' BGP updates for originated routes.

This commit is contained in:
Ondrej Zajicek 2009-04-29 22:17:40 +02:00
parent 4827b69ff4
commit b7a735ea9d

View File

@ -788,8 +788,8 @@ bgp_create_attrs(struct bgp_proto *p, rte *e, ea_list **attrs, struct linpool *p
z = bgp_set_attr_wa(ea->attrs+2, pool, BA_NEXT_HOP, NEXT_HOP_LENGTH);
if (p->cf->next_hop_self ||
!p->is_internal ||
rta->dest != RTD_ROUTER)
rta->dest != RTD_ROUTER ||
(!p->is_internal && (e->attrs->iface != p->neigh->iface)))
set_next_hop(z, p->source_addr);
else
set_next_hop(z, e->attrs->gw);