https://github.com/dutchcoders/go-ouitools
Golang tools to work with Mac addresses and oui. Includes oui database to resolve to vendor.
https://github.com/dutchcoders/go-ouitools
Last synced: 3 months ago
JSON representation
Golang tools to work with Mac addresses and oui. Includes oui database to resolve to vendor.
- Host: GitHub
- URL: https://github.com/dutchcoders/go-ouitools
- Owner: dutchcoders
- License: mit
- Created: 2014-06-12T20:18:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-09T07:49:41.000Z (almost 10 years ago)
- Last Synced: 2024-06-18T23:12:29.831Z (about 1 year ago)
- Language: Go
- Size: 729 KB
- Stars: 17
- Watchers: 6
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-ouitools
===========Golang tools to work with Mac addresses and oui. Includes oui database to resolve to vendor.
## Sample
```
package mainimport (
"fmt"
"github.com/dutchcoders/go-ouitools"
)var db *OuiDb
func main() {
db := New("oui.txt")
if db == nil {
t.Fatal("database not initialized")
}
mac:="00:16:e0:3d:f4:4c"
v, err := db.VendorLookup(mac)
if err != nil {
fmt.Fatalf("parse: %s: %s", mac, err.Error())
}
fmt.Printf("%s => %s\n", mac, v)
}```
## Testing
```
go test
```## References
* wireshark oui database## Contributors
* Remco Verhoef (Dutchcoders) @remco_verhoef
* Claudio Matsuoka