diff options
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 9 |
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); |