From 44a16bff6cbf3f5ae8db21ffcec602bc51295d0a Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Sun, 18 Feb 2024 09:00:10 +0100 Subject: BGP: Update SendHoldTimer BGP Error code IANA registered an "Early Allocation" BGP Error code for 'Send Hold Timer Expired' event. Update BIRD to use that error code. --- proto/bgp/bgp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proto/bgp/bgp.c') diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index e97b45e6..bd6e90d6 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -1059,12 +1059,13 @@ bgp_send_hold_timeout(timer *t) struct bgp_conn *conn = t->data; struct bgp_proto *p = conn->bgp; + DBG("BGP: Send hold timeout\n"); + if (conn->state == BS_CLOSE) return; - /* Error codes not yet assigned by IANA */ - uint code = 4; - uint subcode = 1; + uint code = 8; + uint subcode = 0; /* Like bgp_error() but without NOTIFICATION */ bgp_log_error(p, BE_BGP_TX, "Error", code, subcode, NULL, 0); -- cgit v1.2.3