summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet/bgp/fsmstate_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/packet/bgp/fsmstate_string.go')
-rw-r--r--pkg/packet/bgp/fsmstate_string.go18
1 files changed, 15 insertions, 3 deletions
diff --git a/pkg/packet/bgp/fsmstate_string.go b/pkg/packet/bgp/fsmstate_string.go
index 4416afc1..74fe0cba 100644
--- a/pkg/packet/bgp/fsmstate_string.go
+++ b/pkg/packet/bgp/fsmstate_string.go
@@ -1,8 +1,20 @@
-// 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
+// Code generated by "stringer -type=FSMState"; DO NOT EDIT.
package bgp
-import "fmt"
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[BGP_FSM_IDLE-0]
+ _ = x[BGP_FSM_CONNECT-1]
+ _ = x[BGP_FSM_ACTIVE-2]
+ _ = x[BGP_FSM_OPENSENT-3]
+ _ = x[BGP_FSM_OPENCONFIRM-4]
+ _ = x[BGP_FSM_ESTABLISHED-5]
+}
const _FSMState_name = "BGP_FSM_IDLEBGP_FSM_CONNECTBGP_FSM_ACTIVEBGP_FSM_OPENSENTBGP_FSM_OPENCONFIRMBGP_FSM_ESTABLISHED"
@@ -10,7 +22,7 @@ var _FSMState_index = [...]uint8{0, 12, 27, 41, 57, 76, 95}
func (i FSMState) String() string {
if i < 0 || i >= FSMState(len(_FSMState_index)-1) {
- return fmt.Sprintf("FSMState(%d)", i)
+ return "FSMState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _FSMState_name[_FSMState_index[i]:_FSMState_index[i+1]]
}