{"id":13595174,"url":"https://github.com/PingmanTools/MacAddressVendorLookup","last_synced_at":"2025-04-09T10:33:03.295Z","repository":{"id":143427559,"uuid":"73433656","full_name":"PingmanTools/MacAddressVendorLookup","owner":"PingmanTools","description":"C# MAC address vendor/OUI lookup library","archived":false,"fork":false,"pushed_at":"2024-09-14T00:02:50.000Z","size":3969,"stargazers_count":16,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T22:06:01.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PingmanTools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-11T00:54:43.000Z","updated_at":"2025-01-30T13:44:52.000Z","dependencies_parsed_at":"2024-11-06T17:38:57.660Z","dependency_job_id":"f74ee22b-efe1-46de-8086-441fe43af7e7","html_url":"https://github.com/PingmanTools/MacAddressVendorLookup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PingmanTools%2FMacAddressVendorLookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PingmanTools%2FMacAddressVendorLookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PingmanTools%2FMacAddressVendorLookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PingmanTools%2FMacAddressVendorLookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PingmanTools","download_url":"https://codeload.github.com/PingmanTools/MacAddressVendorLookup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:45.298Z","updated_at":"2025-04-09T10:32:58.286Z","avatar_url":"https://github.com/PingmanTools.png","language":"C#","funding_links":[],"categories":["C#","C\\#"],"sub_categories":[],"readme":"# MAC Address Vendor Lookup\n\nFast MAC address vendor lookup library. Uses [Wireshark's manufactures database of OUIs](https://www.wireshark.org/tools/oui-lookup.html) (Organizationally Unique Identifier).\n\nTakes a MAC address in the form of .NET's [`System.Net.NetworkInformation.PhysicalAddress`](https://msdn.microsoft.com/en-us/library/system.net.networkinformation.physicaladdress(v=vs.110).aspx) and returns a matching `MacVendorInfo` if found. \n\nThe `MacAddressVendorLookup` lib has the parsing and matching logic, and the `MacAddressVendorLookup.Vendors` lib contains a compressed form of Wireshark's manuf file (about 565KB) as an embedded resource.\n\nThe `VendorFileGenerator` project checks [Wireshark's Github repo](https://github.com/wireshark/wireshark) for udpates to the [manuf file](https://github.com/wireshark/wireshark/blob/master/manuf) and generates the `manuf_bin.zip` file used as the embedded resource in `MacAddressVendorLookup.Vendors`.\n\n# Example\n```C#\n// Get vendor information for current machine's network interfaces\n\nvar vendorInfoProvider = new MacAddressVendorLookup.MacVendorBinaryReader();\nusing (var resourceStream = MacAddressVendorLookup.Vendors.ManufBinResource.GetStream().Result)\n{\n    vendorInfoProvider.Init(resourceStream).Wait();\n}\nvar addressMatcher = new MacAddressVendorLookup.AddressMatcher(vendorInfoProvider);\n\nforeach (var ni in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces())\n{\n    var vendorInfo = addressMatcher.FindInfo(ni.GetPhysicalAddress());\n    Console.WriteLine(\"\\nAdapter: \" + ni.Description);\n    var macAddr = BitConverter.ToString(ni.GetPhysicalAddress().GetAddressBytes()).Replace('-', ':');\n    Console.WriteLine($\"\\tMAC Address: {macAddr}\");\n}\n\n/* Output on Windows (in Parallels VM):\n\nAdapter: Intel(R) 82574L Gigabit Network Connection\n    [MacVendorInfo: IdentiferString=00:1C:42, Organization=Parallels, Inc.]\n    MAC Address: 00:1C:42:B2:84:35\n*/\n\n/* Output on MacOS:\n\nAdapter: en0\n    [MacVendorInfo: IdentiferString=78:31:C1, Organization=Apple, Inc.]\n    MAC Address: 78:31:C1:B7:C2:8E\n\nAdapter: vnic0\n    [MacVendorInfo: IdentiferString=00:1C:42, Organization=Parallels, Inc.]\n    MAC Address: 00:1C:42:00:00:08\n\nAdapter: en8\n    [MacVendorInfo: IdentiferString=48:D7:05, Organization=Apple, Inc.]\n    MAC Address: 48:D7:05:EA:15:A3\n*/\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPingmanTools%2FMacAddressVendorLookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPingmanTools%2FMacAddressVendorLookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPingmanTools%2FMacAddressVendorLookup/lists"}