summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_bmp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-06-03 23:13:52 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-08-18 15:29:04 +0200
commite20c23fa5b06f1dcef4e99df5099e55251d9d9bd (patch)
tree778b6c5e4e80c6970f0a1973ae7c597c20631552 /bgpd/bgp_bmp.c
parentbgpd: READ and WRITE flags are a part of the connection (diff)
downloadfrr-e20c23fa5b06f1dcef4e99df5099e55251d9d9bd.tar.xz
frr-e20c23fa5b06f1dcef4e99df5099e55251d9d9bd.zip
bgpd: Move status and ostatus to `struct peer_connection`
The status and ostatus are a function of the `struct peer_connection` move it into that data structure. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_bmp.c')
-rw-r--r--bgpd/bgp_bmp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c
index baf164679..4d604addd 100644
--- a/bgpd/bgp_bmp.c
+++ b/bgpd/bgp_bmp.c
@@ -703,7 +703,7 @@ static int bmp_peer_status_changed(struct peer *peer)
if (!bmpbgp)
return 0;
- if (peer->status == Deleted) {
+ if (peer->connection.status == Deleted) {
bbpeer = bmp_bgp_peer_find(peer->qobj_node.nid);
if (bbpeer) {
XFREE(MTYPE_BMP_OPEN, bbpeer->open_rx);
@@ -715,10 +715,12 @@ static int bmp_peer_status_changed(struct peer *peer)
}
/* Check if this peer just went to Established */
- if ((peer->ostatus != OpenConfirm) || !(peer_established(peer)))
+ if ((peer->connection.ostatus != OpenConfirm) ||
+ !(peer_established(peer)))
return 0;
- if (peer->doppelganger && (peer->doppelganger->status != Deleted)) {
+ if (peer->doppelganger &&
+ (peer->doppelganger->connection.status != Deleted)) {
bbpeer = bmp_bgp_peer_get(peer);
bbdopp = bmp_bgp_peer_find(peer->doppelganger->qobj_node.nid);
if (bbdopp) {