summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 7cdd866b..849d8169 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -42,7 +42,12 @@ type FSM struct {
}
func (fsm *FSM) bgpMessageStateUpdate(MessageType uint8, isIn bool) {
- state := fsm.peerConfig.BgpNeighborCommonState
+ state := &fsm.peerConfig.BgpNeighborCommonState
+ if isIn {
+ state.TotalIn++
+ } else {
+ state.TotalOut++
+ }
switch MessageType {
case bgp.BGP_MSG_OPEN:
if isIn {