summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2004-05-21 12:10:22 +0000
committerclaudio <claudio@openbsd.org>2004-05-21 12:10:22 +0000
commitbb17bd696d8c0fe791c3fbd66d54bc71305c682a (patch)
tree94b778254bfb13d0a72980ae68c0a27aad9ca990
parentmove the big name tables to the .h file, makes the .c easier (diff)
downloadwireguard-openbsd-bb17bd696d8c0fe791c3fbd66d54bc71305c682a.tar.xz
wireguard-openbsd-bb17bd696d8c0fe791c3fbd66d54bc71305c682a.zip
Grrr. Forgot to cleanup dynamic announcements on shutdown.
-rw-r--r--usr.sbin/bgpd/rde.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index caba905a651..def3f552e00 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.113 2004/05/21 11:48:56 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.114 2004/05/21 12:10:22 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1282,6 +1282,13 @@ rde_shutdown(void)
path_remove(asp);
}
+ peerdynamic.remote_bgpid = 0;
+ peerdynamic.state = PEER_DOWN;
+ for (asp = LIST_FIRST(&peerdynamic.path_h); asp != NULL; asp = nasp) {
+ nasp = LIST_NEXT(asp, peer_l);
+ path_remove(asp);
+ }
+
/* free filters */
while ((r = TAILQ_FIRST(rules_l)) != NULL) {
TAILQ_REMOVE(rules_l, r, entries);