summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-23 16:13:42 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-23 16:13:42 -0800
commitb644f6b6bf6ef5c833f549664d45ff96ba962308 (patch)
tree9977b41396b95342e2612d0445aaaae8eb72ad18 /server
parent196a08123a105e0b1808686abb12fd22ae9cfbce (diff)
server: increment EstablisedCount
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-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)