From b644f6b6bf6ef5c833f549664d45ff96ba962308 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 23 Dec 2014 16:13:42 -0800 Subject: server: increment EstablisedCount Signed-off-by: FUJITA Tomonori --- server/peer.go | 1 + 1 file changed, 1 insertion(+) (limited to 'server') diff --git a/server/peer.go b/server/peer.go index e7527805..23df06d9 100644 --- a/server/peer.go +++ b/server/peer.go @@ -142,6 +142,7 @@ func (peer *Peer) loop() error { if nextState == bgp.BGP_FSM_ESTABLISHED { pathList := peer.adjRib.GetOutPathList(table.RF_IPv4_UC) peer.sendMessages(peer.path2update(pathList)) + peer.peerConfig.BgpNeighborCommonState.EstablishedCount++ } if oldState == bgp.BGP_FSM_ESTABLISHED { peer.sendToHub("", PEER_MSG_DOWN, peer.fsm.peerInfo) -- cgit v1.2.3