diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 19:59:25 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 19:59:25 +0000 |
commit | 773b2797d0667b7493ddae968f2d78e5b54c673d (patch) | |
tree | 1ae1c8a3de5b2be384c0dac0550cadc6dd8d3190 /usr.sbin/bgpd/rde.c | |
parent | 57a2ceca5c5933da9b07fcc2cc03aa5d52102f02 (diff) |
now that we keep track of the routes we added to the kernel we can remove
them easily on shutdown without the RDE's help
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 0aa56bd147c..db7aa6d758a 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.25 2003/12/24 13:49:21 henning Exp $ */ +/* $OpenBSD: rde.c,v 1.26 2003/12/24 19:59:24 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -42,8 +42,6 @@ void init_attr_flags(struct attr_flags *); int rde_update_get_attr(u_char *, u_int16_t, struct attr_flags *); void rde_update_err(u_int32_t, enum suberr_update); -void rde_dump_kroute(struct pt_entry *pt, void *ptr); - void peer_init(struct bgpd_config *, u_long); struct rde_peer *peer_add(u_int32_t, struct peer_config *); void peer_remove(struct rde_peer *); @@ -255,7 +253,6 @@ rde_dispatch_imsg(struct imsgbuf *ibuf, int idx) imsg.hdr.peerid, NULL, 0); break; case IMSG_SHUTDOWN_REQUEST: - pt_dump(rde_dump_kroute, NULL); imsg_compose(&ibuf_main, IMSG_SHUTDOWN_DONE, 0, NULL, 0); break; @@ -540,14 +537,6 @@ rde_send_kroute(struct prefix *new, struct prefix *old) imsg_compose(&ibuf_main, type, 0, &kr, sizeof(kr)); } -void -rde_dump_kroute(struct pt_entry *pt, void *ptr) -{ - if (pt->active == NULL) - return; - rde_send_kroute(NULL, pt->active); -} - /* * peer functions */ |