summaryrefslogtreecommitdiffhomepage
path: root/packet/fsmstate_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'packet/fsmstate_string.go')
-rw-r--r--packet/fsmstate_string.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet/fsmstate_string.go b/packet/fsmstate_string.go
index 26cafe25..4416afc1 100644
--- a/packet/fsmstate_string.go
+++ b/packet/fsmstate_string.go
@@ -1,4 +1,4 @@
-// generated by stringer -type FSMState constatnt.go; DO NOT EDIT
+// generated by stringer -type=FSMState -output=fsmstate_string.go bgp.go validate.go mrt.go rtr.go constant.go bmp.go esitype_string.go bgpattrtype_string.go; DO NOT EDIT
package bgp
@@ -9,9 +9,8 @@ const _FSMState_name = "BGP_FSM_IDLEBGP_FSM_CONNECTBGP_FSM_ACTIVEBGP_FSM_OPENSEN
var _FSMState_index = [...]uint8{0, 12, 27, 41, 57, 76, 95}
func (i FSMState) String() string {
- i -= 1
- if i < 0 || i+1 >= FSMState(len(_FSMState_index)) {
- return fmt.Sprintf("FSMState(%d)", i+1)
+ if i < 0 || i >= FSMState(len(_FSMState_index)-1) {
+ return fmt.Sprintf("FSMState(%d)", i)
}
return _FSMState_name[_FSMState_index[i]:_FSMState_index[i+1]]
}