OuiVendorResolver
Table-driven OUI lookup. Unknown prefixes resolve to VendorName.Unknown rather than failing - an unmapped vendor is normal, not an error.
public sealed class OuiVendorResolver : IOuiVendorResolver
1. Constructors
1.1. OuiVendorResolver()
Initializes a new instance of the OuiVendorResolver class over Default.
public OuiVendorResolver()
1.2. OuiVendorResolver(IReadOnlyDictionary<OuiPrefix, VendorName>)
Initializes a new instance of the OuiVendorResolver class.
public OuiVendorResolver(IReadOnlyDictionary<OuiPrefix, VendorName> table)
| Name | Type | Description |
|---|---|---|
table |
IReadOnlyDictionary<OuiPrefix, VendorName> |
OUI → vendor map to resolve against. |
2. Methods
2.1. Resolve(MacAddress)
Resolve the vendor for mac, or VendorName.Unknown when the OUI is not in the table.
public VendorName Resolve(MacAddress mac)
| Name | Type | Description |
|---|---|---|
mac |
MacAddress |
Address whose OUI to look up. |
Returns: VendorName