diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:24:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:24:27 +0000 |
commit | 5ccc261513acf225981dd21bea202fea8c25ed3c (patch) | |
tree | 817ad5ca8a8f2c02263474767fefa2215acce29e /usr.sbin/bgpd/bgpd.c | |
parent | 9971e57c7c66ae0dbf17d2524c5ca10d12325449 (diff) |
kill IMSG_KROUTE_ADD as well. just send KROUTE_CHANGE requests.
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 468a6842882..d2a7468bdb8 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.27 2003/12/25 02:09:19 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.28 2003/12/25 02:24:26 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -335,17 +335,12 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_config *conf) break; } break; - case IMSG_KROUTE_ADD: - if (idx != PFD_PIPE_ROUTE) - fatal("route request not from RDE", 0); - if (kroute_change(rfd, imsg.data)) - fatal("kroute_add error", errno); - break; case IMSG_KROUTE_CHANGE: if (idx != PFD_PIPE_ROUTE) fatal("route request not from RDE", 0); if (kroute_change(rfd, imsg.data)) fatal("kroute_change error", errno); + break; case IMSG_KROUTE_DELETE: if (idx != PFD_PIPE_ROUTE) fatal("route request not from RDE", 0); |