]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: check rtt later after the real peer is known
authorTimo Teräs <timo.teras@iki.fi>
Thu, 22 Oct 2015 08:35:17 +0000 (11:35 +0300)
committervivek <vivek@cumulusnetworks.com>
Mon, 6 Jun 2016 16:29:13 +0000 (09:29 -0700)
commit0cd0d97907b09efaadd9e91ff57cb4391a45fc2b
tree5c23c9be122145591dee2089d09388f9b90849fc
parent43ed4fe5cb02360b028182719eec1db06405f463
bgpd: check rtt later after the real peer is known

OPEN message handler moves the connection from the temporary
"struct peer" (used to accept it) to the real "struct peer" based
on the configuration. RTT needs to be updated only to the real
struct peer, and this patch moves the RTT query to point where
realpeer is known.

Fixes: ef757700d0 "bgpd: allow using rtt in route-map's set metric"
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
(cherry picked from commit 0edba8b6ad9c83fa0a3cc58765fe9f123f4109ac)

Conflicts:
bgpd/bgp_packet.c
bgpd/bgp_packet.c