index

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package index provides functionality related to OUIs (organizationally unique identifiers). OUIs are 24-bit numbers that uniquely identifies a vendor, manufacturer, or other organization. They are purchased from the Institute of Electrical and Electronics Engineers (IEEE) Registration Authority by the assignee (IEEE term for the vendor, manufacturer, or other organization).

Only assignment from MA-L registry assigns new OUI.

References:

* https://gitlab.com/wireshark/wireshark/-/raw/master/manuf * https://en.wikipedia.org/wiki/Organizationally_unique_identifier

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment string

Assignment is either a MAC addresses (most common?), Subnetwork Access Protocol identifiers, World Wide Names for Fibre Channel devices or vendor blocks in EDID.

type PublicListingURL

type PublicListingURL string
const (
	OUIURL       PublicListingURL = "http://standards-oui.ieee.org/oui/oui.csv"
	CIDURL       PublicListingURL = "http://standards-oui.ieee.org/cid/cid.csv"
	IABURL       PublicListingURL = "http://standards-oui.ieee.org/iab/iab.csv"
	MAMURL       PublicListingURL = "http://standards-oui.ieee.org/oui28/mam.csv"
	OUI36URL     PublicListingURL = "http://standards-oui.ieee.org/oui36/oui36.csv"
	RawGitHubURL PublicListingURL = "https://raw.githubusercontent.com/picatz/manuf/main/manuf.csv"
)

type Record

type Record struct {
	Registry            Registry
	Assignment          Assignment
	OrganizationName    string
	OrganizationAddress string
}

Record contains information for a organizationally unique identifier (OUI), a 24-bit number that uniquely identifies a vendor, manufacturer, or other organization.

Only assignment from "MA-L" registry assigns new OUI.

func (*Record) CSV

func (r *Record) CSV() []string

type Records

type Records []*Record

func HTTPGetAllRecords

func HTTPGetAllRecords(ctx context.Context, client *http.Client) (Records, error)

func HTTPGetRecords

func HTTPGetRecords(ctx context.Context, client *http.Client, recordsURL string) (Records, error)

func RecordsFromFile

func RecordsFromFile(filepath string) (Records, error)

func RecordsFromReader

func RecordsFromReader(rdr io.Reader) (Records, error)

func (Records) Write

func (r Records) Write(filepath string) error

type Registry

type Registry string

Registry is an IEEE public OUI listing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL