summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldpd/control.c')
-rw-r--r--usr.sbin/ldpd/control.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/control.c b/usr.sbin/ldpd/control.c
index 1671da2e9f2..4ac6b114b27 100644
--- a/usr.sbin/ldpd/control.c
+++ b/usr.sbin/ldpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.26 2016/05/23 19:11:42 renato Exp $ */
+/* $OpenBSD: control.c,v 1.27 2016/05/23 19:20:55 renato Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -263,6 +263,13 @@ control_dispatch_imsg(int fd, short event, void *bula)
case IMSG_CTL_SHOW_NBR:
ldpe_nbr_ctl(c);
break;
+ case IMSG_CTL_CLEAR_NBR:
+ if (imsg.hdr.len != IMSG_HEADER_SIZE +
+ sizeof(struct ctl_nbr))
+ break;
+
+ nbr_clear_ctl(imsg.data);
+ break;
case IMSG_CTL_LOG_VERBOSE:
if (imsg.hdr.len != IMSG_HEADER_SIZE +
sizeof(verbose))