summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-03 13:54:28 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-03 13:54:28 +0000
commit03819e0c2cb48fc785368a412c4e6729a90f657c (patch)
treee7c9768af969f807cc2d73b359d92bcc7108d09f /usr.sbin
parent5bd70d3526e59e885fc4ff10cbde91aba128d285 (diff)
send an imsg as list end indicator
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/bgpd.h5
-rw-r--r--usr.sbin/bgpd/control.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index cb552a46977..aa8b00dc01c 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.47 2004/01/02 02:27:57 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.48 2004/01/03 13:54:27 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -218,7 +218,8 @@ enum imsg_type {
IMSG_NEXTHOP_ADD,
IMSG_NEXTHOP_REMOVE,
IMSG_NEXTHOP_UPDATE,
- IMSG_CTL_SHOW_NEIGHBOR
+ IMSG_CTL_SHOW_NEIGHBOR,
+ IMSG_CTL_END
};
struct imsg_hdr {
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index afec020086d..8dba7cffb4f 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.4 2004/01/03 13:28:02 henning Exp $ */
+/* $OpenBSD: control.c,v 1.5 2004/01/03 13:54:27 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -198,6 +198,7 @@ control_dispatch_msg(struct pollfd *pfd, int i)
for (p = conf->peers; p != NULL; p = p->next)
imsg_compose(&c->ibuf, IMSG_CTL_SHOW_NEIGHBOR,
0, p, sizeof(struct peer));
+ imsg_compose(&c->ibuf, IMSG_CTL_END, 0, NULL, 0);
break;
default:
break;