https://github.com/bitvantage/ethernet.ouidatabase
Lookup manufacture information for MAC addresses
https://github.com/bitvantage/ethernet.ouidatabase
Last synced: 4 months ago
JSON representation
Lookup manufacture information for MAC addresses
- Host: GitHub
- URL: https://github.com/bitvantage/ethernet.ouidatabase
- Owner: Bitvantage
- License: agpl-3.0
- Created: 2024-06-28T20:41:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T15:05:08.000Z (almost 2 years ago)
- Last Synced: 2025-10-03T13:56:34.350Z (9 months ago)
- Language: C#
- Homepage:
- Size: 941 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Bitvantage.Ethernet.OuiDatabase
Lookup manufacture information for MAC addresses
## Installing via NuGet Package Manager
```sh
PM> NuGet\Install-Package Bitvantage.Ethernet.OuiDatabase
```
## OUI Database
The first three octets of a MAC address are assigned by the IEEE. The registration data is public and can be looked up for a given MAC address. The manufacturer can often give clues as to what the device is.
```csharp
// Create a new OuiDatabase using the defaults
// The default options will use the last downloaded database if it exists, and fallback to an internal database if it does not exist.
// An asynchronous background update check is triggered upon object creation that will update the database every 30 days.
var ouiDatabase = new OuiDatabase();
var ouiRecord = ouiDatabase["64:D1:A3:01:02:03"];
var organization = ouiRecord.Organization;
var address = ouiRecord.Address;
var prefix = ouiRecord.Prefix;
```