manikkaraj k | 9eb6cac | 2019-05-09 12:32:03 -0400 | [diff] [blame] | 1 | // Code generated by "stringer -output=string.go -type=EtherType"; DO NOT EDIT. |
| 2 | |
| 3 | package ethernet |
| 4 | |
| 5 | import "fmt" |
| 6 | |
| 7 | const ( |
| 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 | |
| 15 | var ( |
| 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 | |
| 23 | func (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 | } |