diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-29 14:37:53 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-29 14:37:53 +0100 |
commit | 4967bf6d729d7dd14dff7b672b2fd4afe78a0d86 (patch) | |
tree | 785446c4f7db040f3123ce82939cc4ad1a4f9f4f /bgpd/bgp_packet.c | |
parent | Merge pull request #15368 from louis-6wind/fix-6pe (diff) | |
download | frr-4967bf6d729d7dd14dff7b672b2fd4afe78a0d86.tar.xz frr-4967bf6d729d7dd14dff7b672b2fd4afe78a0d86.zip |
bgpd: Send "Send Hold Timer Expired" on such events notification
This is required by the current (latest/-02 draft).
IANA has registered code 8 for "Send Hold Timer Expired" in the "BGP
Error (Notification) Codes" sub-registry under the "Border Gateway
Protocol (BGP) Parameters" registry.
https://datatracker.ietf.org/doc/html/draft-ietf-idr-bgp-sendholdtimer
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index da352a844..55d3efde2 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -148,7 +148,8 @@ static void bgp_packet_add(struct peer_connection *connection, EC_BGP_SENDQ_STUCK_PROPER, "%pBP has not made any SendQ progress for 2 holdtimes (%jds), terminating session", peer, sendholdtime); - BGP_EVENT_ADD(connection, TCP_fatal_error); + bgp_stop_with_notify(connection, + BGP_NOTIFY_SEND_HOLD_ERR, 0); } else if (delta > (intmax_t)holdtime && monotime(NULL) - peer->last_sendq_warn > 5) { flog_warn( |