summaryrefslogtreecommitdiff
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-08-26 22:20:16 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-09-09 16:28:05 -0400
commit513c8c4f74b24c67ed7e56582c5b1e0093e5118e (patch)
tree370eda877d9c9f4d52962901a75e2dc19c7e7da2 /bgpd/bgpd.c
parent981dd86920ec049174ea81f961896b94e4ae017f (diff)
bgpd: move t_pmax_restart to peer_connection
The t_pmax_restart event pointer belongs in the peer_connection pointer. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 8cdca56d4e..62c803546c 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4601,8 +4601,8 @@ static void peer_flag_modify_action(struct peer *peer, uint64_t flag)
UNSET_FLAG(peer->sflags, PEER_STATUS_PREFIX_OVERFLOW);
- if (peer->t_pmax_restart) {
- EVENT_OFF(peer->t_pmax_restart);
+ if (peer->connection->t_pmax_restart) {
+ EVENT_OFF(peer->connection->t_pmax_restart);
if (bgp_debug_neighbor_events(peer))
zlog_debug(
"%pBP Maximum-prefix restart timer canceled",
@@ -7537,8 +7537,8 @@ static bool peer_maximum_prefix_clear_overflow(struct peer *peer)
return false;
UNSET_FLAG(peer->sflags, PEER_STATUS_PREFIX_OVERFLOW);
- if (peer->t_pmax_restart) {
- EVENT_OFF(peer->t_pmax_restart);
+ if (peer->connection->t_pmax_restart) {
+ EVENT_OFF(peer->connection->t_pmax_restart);
if (bgp_debug_neighbor_events(peer))
zlog_debug(
"%pBP Maximum-prefix restart timer cancelled",