From: job Date: Mon, 19 Feb 2024 10:15:35 +0000 (+0000) Subject: IANA assigned error 8 to draft-ietf-idr-sendholdtimer X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=66500b2f7772472127e272da950033189f1a648e;p=openbsd IANA assigned error 8 to draft-ietf-idr-sendholdtimer https://www.iana.org/assignments/bgp-parameters/bgp-parameters.xhtml#bgp-parameters-3 OK claudio@ --- diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 36a888f988c..8fe49ac0799 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.485 2024/02/13 16:35:43 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.486 2024/02/19 10:15:35 job Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -705,7 +705,8 @@ enum err_codes { ERR_HOLDTIMEREXPIRED, ERR_FSM, ERR_CEASE, - ERR_RREFRESH + ERR_RREFRESH, + ERR_SENDHOLDTIMEREXPIRED, }; enum suberr_update { diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index be8e2fbf60b..fddd2f41584 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.462 2024/02/13 16:12:37 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.463 2024/02/19 10:15:35 job Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -705,11 +705,15 @@ bgp_fsm(struct peer *peer, enum session_events event) change_state(peer, STATE_IDLE, event); break; case EVNT_TIMER_HOLDTIME: - case EVNT_TIMER_SENDHOLD: session_notification(peer, ERR_HOLDTIMEREXPIRED, 0, NULL); change_state(peer, STATE_IDLE, event); break; + case EVNT_TIMER_SENDHOLD: + session_notification(peer, ERR_SENDHOLDTIMEREXPIRED, + 0, NULL); + change_state(peer, STATE_IDLE, event); + break; case EVNT_RCVD_OPEN: /* parse_open calls change_state itself on failure */ if (parse_open(peer)) @@ -746,11 +750,15 @@ bgp_fsm(struct peer *peer, enum session_events event) change_state(peer, STATE_IDLE, event); break; case EVNT_TIMER_HOLDTIME: - case EVNT_TIMER_SENDHOLD: session_notification(peer, ERR_HOLDTIMEREXPIRED, 0, NULL); change_state(peer, STATE_IDLE, event); break; + case EVNT_TIMER_SENDHOLD: + session_notification(peer, ERR_SENDHOLDTIMEREXPIRED, + 0, NULL); + change_state(peer, STATE_IDLE, event); + break; case EVNT_TIMER_KEEPALIVE: session_keepalive(peer); break; @@ -782,11 +790,15 @@ bgp_fsm(struct peer *peer, enum session_events event) change_state(peer, STATE_IDLE, event); break; case EVNT_TIMER_HOLDTIME: - case EVNT_TIMER_SENDHOLD: session_notification(peer, ERR_HOLDTIMEREXPIRED, 0, NULL); change_state(peer, STATE_IDLE, event); break; + case EVNT_TIMER_SENDHOLD: + session_notification(peer, ERR_SENDHOLDTIMEREXPIRED, + 0, NULL); + change_state(peer, STATE_IDLE, event); + break; case EVNT_TIMER_KEEPALIVE: session_keepalive(peer); break;