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_dump.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_dump.c')
| -rw-r--r-- | bgpd/bgp_dump.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index fe77e7e250..489b3c6587 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -512,8 +512,8 @@ int bgp_dump_state(struct peer *peer)  			bgp_dump_all.type);  	bgp_dump_common(obuf, peer, 1); /* force this in as4speak*/ -	stream_putw(obuf, peer->ostatus); -	stream_putw(obuf, peer->status); +	stream_putw(obuf, peer->connection.ostatus); +	stream_putw(obuf, peer->connection.status);  	/* Set length. */  	bgp_dump_set_size(obuf, MSG_PROTOCOL_BGP4MP);  | 
