summaryrefslogtreecommitdiff
path: root/proto/bgp/attrs.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-04-02 17:22:31 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-04-02 17:22:31 +0200
commita22c3e59683d0ea6c379a37f990e74a6d281ccef (patch)
treee1d5a1195b18c7da83f9d721b2830e92e9a57466 /proto/bgp/attrs.c
parent3a22a6e858cd703d254ab331183ccd56fe195c6b (diff)
BGP: Separate runtime and config usage of local/remote ip and as fields
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r--proto/bgp/attrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index cbb22038..64a25995 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -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;
}