mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 07:26:05 +00:00
bgpd: Fixed snmp and bmp 'just Established' test.
It was previously comparing an fsm event variable with an fsm status constant. This fixes issue #5963. Signed-off-by: Josh Cox <josh.cox@pureport.com>
This commit is contained in:
parent
9c23deece2
commit
fd2e2db680
@ -664,8 +664,7 @@ static int bmp_peer_established(struct peer *peer)
|
||||
return 0;
|
||||
|
||||
/* Check if this peer just went to Established */
|
||||
if ((peer->last_major_event != OpenConfirm) ||
|
||||
!(peer_established(peer)))
|
||||
if ((peer->ostatus != OpenConfirm) || !(peer_established(peer)))
|
||||
return 0;
|
||||
|
||||
if (peer->doppelganger && (peer->doppelganger->status != Deleted)) {
|
||||
|
@ -858,7 +858,7 @@ static int bgpTrapEstablished(struct peer *peer)
|
||||
oid index[sizeof(oid) * IN_ADDR_SIZE];
|
||||
|
||||
/* Check if this peer just went to Established */
|
||||
if ((peer->last_major_event != OpenConfirm) || !(peer_established(peer)))
|
||||
if ((peer->ostatus != OpenConfirm) || !(peer_established(peer)))
|
||||
return 0;
|
||||
|
||||
ret = inet_aton(peer->host, &addr);
|
||||
|
Loading…
Reference in New Issue
Block a user