Add IMSG_CTL_SHOW_RTR to the list of restriced control messages.
authorclaudio <claudio@openbsd.org>
Tue, 27 Apr 2021 15:34:18 +0000 (15:34 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 27 Apr 2021 15:34:18 +0000 (15:34 +0000)
usr.sbin/bgpd/control.c

index 1e7bbda..844a05e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: control.c,v 1.104 2021/02/16 08:29:16 claudio Exp $ */
+/*     $OpenBSD: control.c,v 1.105 2021/04/27 15:34:18 claudio Exp $ */
 
 /*
  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -281,6 +281,7 @@ control_dispatch_msg(struct pollfd *pfd, struct peer_head *peers)
                        case IMSG_CTL_SHOW_RIB:
                        case IMSG_CTL_SHOW_RIB_PREFIX:
                        case IMSG_CTL_SHOW_SET:
+                       case IMSG_CTL_SHOW_RTR:
                                break;
                        default:
                                /* clear imsg type to prevent processing */