mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
BGP: Always prefer older
When 'prefer older' is enabled, it should work even in EBGP.
This commit is contained in:
parent
5ae13e157f
commit
6157f28a06
@ -1734,8 +1734,7 @@ bgp_rte_better(rte *new, rte *old)
|
|||||||
|
|
||||||
/* RFC 5004 - prefer older routes */
|
/* RFC 5004 - prefer older routes */
|
||||||
/* (if both are external and from different peer) */
|
/* (if both are external and from different peer) */
|
||||||
if ((new_bgp->cf->prefer_older || old_bgp->cf->prefer_older) &&
|
if ((new_bgp->cf->prefer_older || old_bgp->cf->prefer_older))
|
||||||
!new_bgp->is_internal && n != o)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* rest of RFC 4271 9.1.2.2. f) */
|
/* rest of RFC 4271 9.1.2.2. f) */
|
||||||
|
Loading…
Reference in New Issue
Block a user