diff --git a/protocols/bgp/server/fsm.go b/protocols/bgp/server/fsm.go index b52bb10076ed98ae1e7fc765f30fe7dee9b037ba..eafdf796b59a1ae63daaa55414f6e2c491f18b49 100644 --- a/protocols/bgp/server/fsm.go +++ b/protocols/bgp/server/fsm.go @@ -37,6 +37,8 @@ type state interface { // FSM implements the BGP finite state machine (RFC4271) type FSM struct { + counters fsmCounters + isBMP bool peer *peer eventCh chan int @@ -78,7 +80,6 @@ type FSM struct { active bool establishedTime time.Time - counters fsmCounters connectionCancelFunc context.CancelFunc }