summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.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_io.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_io.c')
-rw-r--r--bgpd/bgp_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 25180ee53..5b7d234f9 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -49,7 +49,7 @@ void bgp_writes_on(struct peer_connection *connection)
assert(fpt->running);
- assert(peer->status != Deleted);
+ assert(connection->status != Deleted);
assert(connection->obuf);
assert(connection->ibuf);
assert(connection->ibuf_work);
@@ -80,7 +80,7 @@ void bgp_reads_on(struct peer_connection *connection)
struct frr_pthread *fpt = bgp_pth_io;
assert(fpt->running);
- assert(peer->status != Deleted);
+ assert(connection->status != Deleted);
assert(connection->ibuf);
assert(connection->fd);
assert(connection->ibuf_work);