-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
126 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package iana | ||
|
||
// EntID represents the Enterprise IDs as set by IANA | ||
type EntID int | ||
|
||
// See https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers for values | ||
const ( | ||
EntIDCiscoSystems EntID = 9 | ||
) | ||
|
||
var entIDToStringMap = map[EntID]string{ | ||
EntIDCiscoSystems: "Cisco Systems", | ||
} | ||
|
||
// String returns the vendor name for a given Enterprise ID | ||
func (e EntID) String() string { | ||
if vendor := entIDToStringMap[e]; vendor != "" { | ||
return vendor | ||
} | ||
return "Unknown" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build darwin solaris | ||
// +build darwin | ||
|
||
package interfaces | ||
|
||
|