Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update oui.txt and add embedded DB package #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Test
run: go test -test.v ./...
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a fork of the fork of the fork the fork of [go-ouitools](https://github.

## Example

```
```go
package main

import (
Expand All @@ -16,6 +16,7 @@ import (

func main() {
// You may also use NewDB and NewDBFromReader functions.
// Or use the ouidata.NewDB function to load the embedded DB.
db, err := oui.NewDBFromFile("oui.txt")
if err != nil {
fmt.Printf("Error: %v\n", err)
Expand All @@ -35,13 +36,22 @@ func main() {

## Testing

```
```bash
go test
```

## Update Embedded OUI DB

```bash
wget -O oui.txt https://gitlab.com/wireshark/wireshark/-/raw/master/manuf
gzip -9 oui.txt --stdout >ouidata/oui.txt.gz
```

## References

* Wireshark OUI database
* Wireshark OUI database (aka Wireshark manufacturer database)
* See https://www.wireshark.org/tools/oui-lookup.html
* See https://gitlab.com/wireshark/wireshark/-/raw/master/manuf

## Contributors

Expand Down
Loading