From b6c0962af4f35b7f6fd4d125813a2bc18863bdf8 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 13 Feb 2024 16:12:37 +0000 Subject: [PATCH] Remove IMSG_SESSION_DOWN handler in the session engine. The RDE does not issue such imsgs. OK tb@ --- usr.sbin/bgpd/session.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index b17952cde59..be8e2fbf60b 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.461 2024/01/18 14:56:44 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.462 2024/02/13 16:12:37 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -3344,15 +3344,6 @@ session_dispatch_imsg(struct imsgbuf *imsgbuf, int idx, u_int *listener_cnt) "IMSG_SESSION_RESTARTED"); } break; - case IMSG_SESSION_DOWN: - if (idx != PFD_PIPE_ROUTE) - fatalx("session down not from RDE"); - if ((p = getpeerbyid(conf, peerid)) == NULL) { - log_warnx("no such peer: id=%u", peerid); - break; - } - session_stop(p, ERR_CEASE_ADMIN_DOWN); - break; default: break; } -- 2.20.1