diff options
author | paul <paul> | 2004-04-20 17:13:15 +0200 |
---|---|---|
committer | paul <paul> | 2004-04-20 17:13:15 +0200 |
commit | 545acafbf599b3d163813e6640a1f83703ebda2e (patch) | |
tree | dd2c4b6288cf4cd34a381c280c995d85c40c8ecc /bgpd/bgpd.c | |
parent | Fix typo to make it compile. (diff) | |
download | frr-545acafbf599b3d163813e6640a1f83703ebda2e.tar.xz frr-545acafbf599b3d163813e6640a1f83703ebda2e.zip |
2004-04-16 rivo nurges <rix@estpak.ee>
* bgpd.h: update cease subcodes to draft-ietf-idr-cease-subcode-05
* bgpd.h, bgpd.c, bgp_route.c, bgp_route.h: fix UNH IOL BGP-4.1.6a
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r-- | bgpd/bgpd.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index f4c8f762f..ae8af9f42 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4612,3 +4612,24 @@ bgp_init () bgp_snmp_init (); #endif /* HAVE_SNMP */ } + +void +bgp_terminate () +{ + struct bgp_master *bm; + struct bgp *bgp; + struct peer *peer; + struct listnode *nn; + struct listnode *mm; + + bm = bgp_get_master (); + + LIST_LOOP (bm->bgp, bgp, nn) + LIST_LOOP (bgp->peer, peer, mm) + if (peer->status == Established) + bgp_notify_send (peer, BGP_NOTIFY_CEASE, + BGP_NOTIFY_CEASE_PEER_UNCONFIG); + + bgp_cleanup_routes (); +} + |