Remove IMSG_SESSION_DOWN handler in the session engine. The RDE does
authorclaudio <claudio@openbsd.org>
Tue, 13 Feb 2024 16:12:37 +0000 (16:12 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 13 Feb 2024 16:12:37 +0000 (16:12 +0000)
not issue such imsgs.
OK tb@

usr.sbin/bgpd/session.c

index b17952c..be8e2fb 100644 (file)
@@ -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 <henning@openbsd.org>
@@ -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;
                }