summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/control.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-05-21 11:48:57 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-05-21 11:48:57 +0000
commit2e37efc589c0992b17faac7080ceda911771b752 (patch)
tree63c1c99791d1e7b60f080a5d6ff06903e3918f08 /usr.sbin/bgpd/control.c
parentd4c14ca08570aece7248cfd6c54324ba9ab9c027 (diff)
Add support for dynamic announcements. Usefule to annouce temporary
blackhole routes or to make network announcements dependent on a external state (e.g. for carp setups) OK henning@
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r--usr.sbin/bgpd/control.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index b64236286bd..a680938e26d 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.30 2004/05/08 11:22:43 henning Exp $ */
+/* $OpenBSD: control.c,v 1.31 2004/05/21 11:48:56 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -271,10 +271,17 @@ control_dispatch_msg(struct pollfd *pfd)
case IMSG_CTL_SHOW_RIB:
case IMSG_CTL_SHOW_RIB_AS:
case IMSG_CTL_SHOW_RIB_PREFIX:
+ case IMSG_CTL_SHOW_NETWORK:
c->ibuf.pid = imsg.hdr.pid;
imsg_compose_rde(imsg.hdr.type, imsg.hdr.pid,
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
break;
+ case IMSG_NETWORK_ADD:
+ case IMSG_NETWORK_REMOVE:
+ case IMSG_NETWORK_FLUSH:
+ imsg_compose_rde(imsg.hdr.type, 0,
+ imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
+ break;
default:
break;
}