-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsubsystemid_string.go
35 lines (29 loc) · 1.15 KB
/
subsystemid_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Code generated by "stringer -type=SubsystemID"; DO NOT EDIT.
package netfilter
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[NFSubsysNone-0]
_ = x[NFSubsysCTNetlink-1]
_ = x[NFSubsysCTNetlinkExp-2]
_ = x[NFSubsysQueue-3]
_ = x[NFSubsysULOG-4]
_ = x[NFSubsysOSF-5]
_ = x[NFSubsysIPSet-6]
_ = x[NFSubsysAcct-7]
_ = x[NFSubsysCTNetlinkTimeout-8]
_ = x[NFSubsysCTHelper-9]
_ = x[NFSubsysNFTables-10]
_ = x[NFSubsysNFTCompat-11]
_ = x[NFSubsysCount-12]
}
const _SubsystemID_name = "NFSubsysNoneNFSubsysCTNetlinkNFSubsysCTNetlinkExpNFSubsysQueueNFSubsysULOGNFSubsysOSFNFSubsysIPSetNFSubsysAcctNFSubsysCTNetlinkTimeoutNFSubsysCTHelperNFSubsysNFTablesNFSubsysNFTCompatNFSubsysCount"
var _SubsystemID_index = [...]uint8{0, 12, 29, 49, 62, 74, 85, 98, 110, 134, 150, 166, 183, 196}
func (i SubsystemID) String() string {
if i >= SubsystemID(len(_SubsystemID_index)-1) {
return "SubsystemID(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SubsystemID_name[_SubsystemID_index[i]:_SubsystemID_index[i+1]]
}