diff options
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r-- | bgpd/bgpd.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index bd00c965..f116a0cf 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -797,13 +797,6 @@ peer_as_change (struct peer *peer, as_t as) type = peer_sort (peer); peer->as = as; - if (bgp_config_check (peer->bgp, BGP_CONFIG_CONFEDERATION) - && ! bgp_confederation_peers_check (peer->bgp, as) - && peer->bgp->as != as) - peer->local_as = peer->bgp->confed_id; - else - peer->local_as = peer->bgp->as; - /* Advertisement-interval reset */ if (peer_sort (peer) == BGP_PEER_IBGP) peer->v_routeadv = BGP_DEFAULT_IBGP_ROUTEADV; @@ -1641,15 +1634,6 @@ bgp_create (as_t *as, 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 () |