diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-06-03 17:13:52 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-08-18 09:29:04 -0400 | 
| commit | e20c23fa5b06f1dcef4e99df5099e55251d9d9bd (patch) | |
| tree | 778b6c5e4e80c6970f0a1973ae7c597c20631552 /bgpd/bgp_network.c | |
| parent | 71d72c4998d6984e43411535eaa2a5b8c0e33d06 (diff) | |
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_network.c')
| -rw-r--r-- | bgpd/bgp_network.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index 9a162b151e..6a3b4e8c87 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -482,11 +482,11 @@ static void bgp_accept(struct event *thread)  	 * Established and then the Clearing_Completed event is generated. Also,  	 * block incoming connection in Deleted state.  	 */ -	if (peer1->status == Clearing || peer1->status == Deleted) { +	if (peer1->connection.status == Clearing || +	    peer1->connection.status == Deleted) {  		if (bgp_debug_neighbor_events(peer1)) -			zlog_debug( -				"[Event] Closing incoming conn for %s (%p) state %d", -				peer1->host, peer1, peer1->status); +			zlog_debug("[Event] Closing incoming conn for %s (%p) state %d", +				   peer1->host, peer1, peer1->connection.status);  		close(bgp_sock);  		return;  	} @@ -522,8 +522,8 @@ static void bgp_accept(struct event *thread)  	if (bgp_debug_neighbor_events(peer1))  		zlog_debug("[Event] connection from %s fd %d, active peer status %d fd %d", -			   inet_sutop(&su, buf), bgp_sock, peer1->status, -			   peer1->connection.fd); +			   inet_sutop(&su, buf), bgp_sock, +			   peer1->connection.status, peer1->connection.fd);  	if (peer1->doppelganger) {  		/* We have an existing connection. Kill the existing one and run  | 
