summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/peer.go1
1 files changed, 1 insertions, 0 deletions
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)