diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-08 06:30:54 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-08 06:30:54 -0800 |
commit | c704e1eafa6c9e4cd1ebaa7612ed31d2f6a0c0bd (patch) | |
tree | 76cbef3f6254cbfea1ddc4de085b3f18a886d06c /server | |
parent | 62373821c59cd5a98338cb7792b1a7248422acfb (diff) |
server: avoid sending routes with unconfigured addres family
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index 7b1617ee..ed57b42e 100644 --- a/server/server.go +++ b/server/server.go @@ -534,6 +534,10 @@ func (server *BgpServer) dropPeerAllRoutes(peer *Peer) []*SenderMsg { if !targetPeer.isRouteServerClient() || targetPeer == peer || targetPeer.fsm.state != bgp.BGP_FSM_ESTABLISHED { continue } + if _, ok := targetPeer.rfMap[rf]; !ok { + continue + } + i := 0 for _, dst := range dsts { feed := dst.NewFeed(targetPeer.TableID()) |