From f418446bb767d79438e2df689c5bf9563c54b317 Mon Sep 17 00:00:00 2001 From: hasso Date: Tue, 1 Feb 2005 20:13:16 +0000 Subject: * bgp_nexthop.c: Improve debug. * bgpd.[ch], bgp_nexthop.c, bgp_snmp.c: Remove useless bgp_get_master() function. * bgp_packet.c: MP AFI_IP update and withdraw parsing. * bgp_fsm.c: Reset peer synctime in bgp_stop(). bgp_fsm_change_status() is better place to log about peer status change than bgp_event(). Log in bgp_connect_success(). * bgp_vty.c: Fix typo in comment. * bgp_attr.c: Better log about unknown attribute. [merge from GNU Zebra] --- bgpd/bgpd.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bgpd/bgpd.c') diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index bd2f998f..cb760d90 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1780,15 +1780,6 @@ bgp_create (as_t *as, const char *name) return bgp; } -/* Return master of BGP. */ -struct bgp_master * -bgp_get_master () -{ - if (bm) - return bm; - return NULL; -} - /* Return first entry of BGP. */ struct bgp * bgp_get_default () @@ -4870,14 +4861,11 @@ bgp_init () 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) -- cgit v1.2.1