blob: 89a3e010a1fdd2e3109be25f84fdffa66933f182 [file] [log] [blame]
manikkaraj k9eb6cac2019-05-09 12:32:03 -04001// Code generated by "stringer -output=string.go -type=EtherType"; DO NOT EDIT.
2
3package ethernet
4
5import "fmt"
6
7const (
8 _EtherType_name_0 = "EtherTypeIPv4"
9 _EtherType_name_1 = "EtherTypeARP"
10 _EtherType_name_2 = "EtherTypeVLAN"
11 _EtherType_name_3 = "EtherTypeIPv6"
12 _EtherType_name_4 = "EtherTypeServiceVLAN"
13)
14
15var (
16 _EtherType_index_0 = [...]uint8{0, 13}
17 _EtherType_index_1 = [...]uint8{0, 12}
18 _EtherType_index_2 = [...]uint8{0, 13}
19 _EtherType_index_3 = [...]uint8{0, 13}
20 _EtherType_index_4 = [...]uint8{0, 20}
21)
22
23func (i EtherType) String() string {
24 switch {
25 case i == 2048:
26 return _EtherType_name_0
27 case i == 2054:
28 return _EtherType_name_1
29 case i == 33024:
30 return _EtherType_name_2
31 case i == 34525:
32 return _EtherType_name_3
33 case i == 34984:
34 return _EtherType_name_4
35 default:
36 return fmt.Sprintf("EtherType(%d)", i)
37 }
38}