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

BGP: Separate runtime and config usage of local/remote ip and as fields

This commit is contained in:
Ondrej Zajicek (work)
2019-04-02 17:22:31 +02:00
parent 3a22a6e858
commit a22c3e5968
5 changed files with 41 additions and 40 deletions

View File

@@ -1733,7 +1733,7 @@ bgp_rte_better(rte *new, rte *old)
return 0;
/* RFC 4271 9.1.2.2. g) Compare peer IP adresses */
return (ipa_compare(new_bgp->cf->remote_ip, old_bgp->cf->remote_ip) < 0);
return ipa_compare(new_bgp->remote_ip, old_bgp->remote_ip) < 0;
}