summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-01 16:12:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-01 16:35:12 +0900
commitd186fa6d01e9b61e7a297d1f8cf8b47547611622 (patch)
treea0d6a052dd0e09e3b4b0ba79ea377e0b7c9b23f3
parente437c2c77ab25a560e720f6b77523b6e31124809 (diff)
server: fix bug of accepted route counting
refresh accepted route counter when soft reset Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--server/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index fe413b59..88fad8d6 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1429,6 +1429,7 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg {
case REQ_NEIGHBOR_SOFT_RESET, REQ_NEIGHBOR_SOFT_RESET_IN:
peer, err := server.checkNeighborRequest(grpcReq)
+ peer.accepted = 0
if err != nil {
break
}