Update dependencies
This commit is contained in:
25
vendor/github.com/insomniacslk/dhcp/iana/entid.go
generated
vendored
Normal file
25
vendor/github.com/insomniacslk/dhcp/iana/entid.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
package iana
|
||||
|
||||
// EnterpriseID represents the Enterprise IDs as set by IANA
|
||||
type EnterpriseID int
|
||||
|
||||
// See https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers for values
|
||||
const (
|
||||
EnterpriseIDCiscoSystems EnterpriseID = 9
|
||||
EnterpriseIDCienaCorporation EnterpriseID = 1271
|
||||
EnterpriseIDMellanoxTechnologiesLTD EnterpriseID = 33049
|
||||
)
|
||||
|
||||
var enterpriseIDToStringMap = map[EnterpriseID]string{
|
||||
EnterpriseIDCiscoSystems: "Cisco Systems",
|
||||
EnterpriseIDCienaCorporation: "Ciena Corporation",
|
||||
EnterpriseIDMellanoxTechnologiesLTD: "Mellanox Technologies LTD",
|
||||
}
|
||||
|
||||
// String returns the vendor name for a given Enterprise ID
|
||||
func (e EnterpriseID) String() string {
|
||||
if vendor := enterpriseIDToStringMap[e]; vendor != "" {
|
||||
return vendor
|
||||
}
|
||||
return "Unknown"
|
||||
}
|
||||
Reference in New Issue
Block a user