summaryrefslogtreecommitdiffhomepage
path: root/iana
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2021-08-10 07:48:32 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2021-10-26 14:51:28 +0200
commitad197bcd36fd5fde44d2eacc50c5aa7aef87a742 (patch)
tree18ea982692e684dc474ddb1b503028ef16c29674 /iana
parent94de7a00bf095cb550525eb3744e56e1f3dc4899 (diff)
use iana EntID
Diffstat (limited to 'iana')
-rw-r--r--iana/entid.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/iana/entid.go b/iana/entid.go
index dbcb51e..8703b79 100644
--- a/iana/entid.go
+++ b/iana/entid.go
@@ -1,22 +1,22 @@
package iana
-// EntID represents the Enterprise IDs as set by IANA
-type EntID int
+// 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 (
- EntIDCiscoSystems EntID = 9
- EntIDCienaCorporation EntID = 1271
+ EnterpriseIDCiscoSystems EnterpriseID = 9
+ EnterpriseIDCienaCorporation EnterpriseID = 1271
)
-var entIDToStringMap = map[EntID]string{
- EntIDCiscoSystems: "Cisco Systems",
- EntIDCienaCorporation: "Ciena Corporation",
+var enterpriseIDToStringMap = map[EnterpriseID]string{
+ EnterpriseIDCiscoSystems: "Cisco Systems",
+ EnterpriseIDCienaCorporation: "Ciena Corporation",
}
// String returns the vendor name for a given Enterprise ID
-func (e EntID) String() string {
- if vendor := entIDToStringMap[e]; vendor != "" {
+func (e EnterpriseID) String() string {
+ if vendor := enterpriseIDToStringMap[e]; vendor != "" {
return vendor
}
return "Unknown"